Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
CVE-2026-33228: flatted JSON parser may let attackers alter global objects
CVE-2026-33228 · published 7 months ago
Summary
Versions of the flatted library before 3.4.2 can treat specially crafted data as a request to modify the core JavaScript array prototype. This can cause unexpected behavior across your whole application if the altered prototype is later used. Update flatted to version 3.4.2 or newer to stop the issue.
What to do
- Update webreflection flatted to version 3.4.2.
- Update rootio @rootio/flatted to version 3.2.2-root.io.2.
- Update webreflection flatted to version 3.2.2-aikido.2.
- Update rootio @rootio/flatted to version 3.3.3-root.io.2.
- Update rootio @rootio/flatted to version 3.3.2-root.io.3.
- Update rootio @rootio/flatted to version 3.4.1-root.io.1.
- Update rootio @rootio/flatted to version 3.3.2-root.io.4.
- Update webreflection flatted to version 3.3.2-aikido.4.
- Update webreflection flatted to version 3.2.5-aikido.1.
- Update rootio @rootio/flatted to version 3.2.5-root.io.1.
- Update webreflection flatted to version 3.2.9-aikido.2.
- Update rootio @rootio/flatted to version 3.2.9-root.io.2.
- Update flatted to version 3.2.2-aikido.2.
- Update flatted to version 3.4.2.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| npm | webreflection | flatted |
<= 3.4.1 < 3.4.2 Fix: upgrade to 3.4.2
|
| Debian:11 | debian | node-flatted | All versions |
| Debian:12 | debian | node-flatted | All versions |
| Debian:13 | debian | node-flatted | All versions |
| Debian:14 | debian | node-flatted | All versions |
| Root:npm | rootio | @rootio/flatted |
< 3.2.2-root.io.2 < 3.3.3-root.io.2 < 3.3.2-root.io.3 < 3.4.1-root.io.1 < 3.3.2-root.io.4 < 3.2.5-root.io.1 < 3.2.9-root.io.2 Fix: upgrade to 3.2.2-root.io.2
|
| Root:npm | webreflection | flatted |
< 3.2.2-aikido.2 < 3.3.2-aikido.4 < 3.2.5-aikido.1 < 3.2.9-aikido.2 Fix: upgrade to 3.2.2-aikido.2
|
| – | webreflection | flatted | < 3.4.2 |
| Root:npm | – | flatted |
< 3.2.2-aikido.2 Fix: upgrade to 3.2.2-aikido.2
|
| npm | – | flatted |
<= 3.4.1 < 3.4.2 Fix: upgrade to 3.4.2
|
| Ubuntu:20.04:LTS | canonical | node-flatted | All versions |
Original advisory text
flatted: Prototype Pollution via parse()
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.
References
- https://github.com/WebReflection/flatted/commit/885ddcc33cf9657caf38c57c7be45ae1... Third Party Advisory
- https://github.com/WebReflection/flatted/security/advisories/GHSA-rf6f-7fwh-wjgh Third Party Advisory
- https://github.com/WebReflection/flatted/releases/tag/v3.4.2 Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-33228 Vendor Advisory
- https://github.com/advisories/GHSA-rf6f-7fwh-wjgh
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33228... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-33228 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:34342 Vendor Advisory
- https://github.com/WebReflection/flatted Product
- https://ubuntu.com/security/CVE-2026-33228 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-33228 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:13826 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:9742 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-33228 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2449872 Third Party Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33228.json URL
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Type
CWE-1321Prototype Pollution
CWE-915Improperly Controlled Modification of Dynamically-Determined Object Attributes
Timeline
Published20 Mar 2026
Updated4 Nov 2026
First seen19 Mar 2026
Sources
DEBIAN-CVE-2026-33228 · OSV
GHSA-rf6f-7fwh-wjgh · GHSA
CVE-2026-33228 · NVD
GHSA-rf6f-7fwh-wjgh · OSV
CVE-2026-33228 · MITRE
CVE-2026-33228 · OSV
UBUNTU-CVE-2026-33228 · OSV
Track software like this
Free during beta