Vulnerability library
Security checkJuly 24, 2026

seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during 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

A type confusion issue in seroval.fromJSON() allowed attacker-controlled JSON input to cause Promise control nodes to operate on values from the general deserialization reference table without first verifying that those values were genuine internal promise resolver records.

Recommendation

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

  • Affected version(s): <= 1.5.2
  • Patched version(s): 1.5.3

References

Could your website be exposed too?

SmartScanner can check your website for seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 24, 2026