Skip to main content
← All vulnerabilities
CVE-2026-33228GHSA-RF6F-7FWH-WJGH

flatted: Prototype Pollution via parse()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.4.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

flatted is a circular JSON parser. Prior to version 3.4.2, 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. This object is then treated as a legitimate parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype to the consumer. Any code that subsequently writes to that property will pollute the global prototype. This issue has been patched in version 3.4.2.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • WebReflection flatted

    fixed in 3.4.2

  • flattednpm

    fixed in 3.4.2

References 3

GitHub · WebReflection/flatted