Vulnerability library
Security checkOctober 28, 2026

Seroval `fromJSON`/`fromCrossJSON` denial of service via unvalidated array node length

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

fromJSON and fromCrossJSON did not check that an array node’s element list is an array. A small crafted payload could set the length the decoder used. That length controlled how much memory was allocated and how many times the decoder looped, and it did not depend on the size of the payload.

Recommendation

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

  • Affected version(s): >= 1.4.1, <= 1.6.7
  • Patched version(s): 1.6.8

References

Could your website be exposed too?

SmartScanner can check your website for Seroval `fromJSON`/`fromCrossJSON` denial of service via unvalidated array node length and gives you actionable findings to investigate.

Start a free scan

Related Issues

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