Vulnerability · Published Mar 20, 2026 · Assigned by GitHub_M

CVE-2026-33228flatted: Prototype Pollution via parse()

Critical 9.8

In plain English

A critical-severity prototype pollution in flatted from WebReflection. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.9%top 41.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-flattedno fix listedDEBIAN-CVE-2026-33228
Debian:13node-flatted3.2.7~ds-1+deb13u1DEBIAN-CVE-2026-33228
Debian:14node-flatted3.4.2~ds-1DEBIAN-CVE-2026-33228
Ubuntu:22.04:LTSnode-flattedno fix listedUBUNTU-CVE-2026-33228
Ubuntu:24.04:LTSnode-flattedno fix listedUBUNTU-CVE-2026-33228
Ubuntu:25.10node-flattedno fix listedUBUNTU-CVE-2026-33228
Ubuntu:26.04:LTSnode-flattedno fix listedUBUNTU-CVE-2026-33228
Ubuntu:26.10node-flattedno fix listedUBUNTU-CVE-2026-33228
npmflatted3.4.2GHSA-rf6f-7fwh-wjgh

Affected products (as reported)

VendorProductVersions
WebReflection flatted < 3.4.2

Weakness: CWE-1321, CWE-915 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References