Vulnerability library
Security checkOctober 28, 2026

Seroval: Code injection through a typed array's own constructor property

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmseroval

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

seroval writes a typed array as a call to its constructor. In affected versions, the constructor name in the output is read from a property that data on the value can replace, and it is written without checks. A typed array that received properties from untrusted data can then put arbitrary code into the serialized output.

Recommendation

Update the seroval package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 1.6.0, < 1.6.11
  • Patched version(s): 1.6.11

References

Could your website be exposed too?

SmartScanner can check your website for Seroval: Code injection through a typed array's own constructor property and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 28, 2026