Vulnerability library
Security checkOctober 05, 2026

Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization

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

High severitynpmseroval

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

deserializeTypedArray casts the source node to ArrayBuffer without checking it and never bounds the element count. Pass a plain object with a length property and it hits the array-like TypedArray constructor, allocating that many elements. The offset guard above it can’t stop this: source.byteLength is undefined, so the comparison is always false.

Recommendation

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

  • Affected version(s): <= 1.6.2
  • Patched version(s): 1.6.3

References

Could your website be exposed too?

SmartScanner can check your website for Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization and gives you actionable findings to investigate.

Start a free scan

Related Issues

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