Vulnerability library
Security checkMarch 25, 2026

Prototype Pollution via parse() in NodeJS flatted

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

High severitynpmflatted

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description


Summary

The parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it with the key “__proto__” returns Array.prototype via the inherited getter.

Recommendation

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

  • Affected version(s): <= 3.4.1
  • Patched version(s): 3.4.2

References

Could your website be exposed too?

SmartScanner can check your website for Prototype Pollution via parse() in NodeJS flatted and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 25, 2026