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 scanRelated Issues
- Axios: Node HTTP adapter prototype-pollution gadget allows request socket hijack via inherited createConnection - CVE-2026-101905
- Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__ - CVE-2026-54335
- jsonata: Function Binding Prototype Pollution via hasOwnProperty Override - CVE-2026-12208
- @rvf/set-get has a prototype pollution issue that's reachable via @rvf/core preprocessFormData (HTTP form data) - CVE-2026-44483


