CVE-2026-33228: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in WebReflection flatted
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.
AI Analysis
Technical Summary
The vulnerability in WebReflection's flatted library arises because the parse() function accepts string keys from JSON input as direct array indices without numeric validation. Since the internal buffer is a JavaScript Array, accessing it with the key "__proto__" returns the Array.prototype object. This object is then assigned as a property of the output object, leaking a live reference to Array.prototype. Subsequent writes to this property result in prototype pollution, enabling attackers to modify global prototype attributes. This can lead to arbitrary code execution or denial of service. The flaw is fixed in flatted version 3.4.2.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by providing specially crafted JSON input to the flatted parser, causing prototype pollution. This can result in arbitrary code execution or denial of service, impacting the confidentiality, integrity, and availability of affected systems. Products that use flatted versions prior to 3.4.2 and process untrusted JSON data are at risk if they do not sanitize input properly.
Mitigation Recommendations
A fix is available in flatted version 3.4.2. Users and vendors should upgrade to version 3.4.2 or later to remediate this vulnerability. Red Hat has issued advisories and is working on fixes for affected products that incorporate the flatted library. Until patched, avoid processing untrusted JSON data with vulnerable versions or apply input sanitization to prevent prototype pollution.
CVE-2026-33228: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in WebReflection flatted
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.
CVSS v4.0
Score 8.9high
Affected software
WebReflection
flatted
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in WebReflection's flatted library arises because the parse() function accepts string keys from JSON input as direct array indices without numeric validation. Since the internal buffer is a JavaScript Array, accessing it with the key "__proto__" returns the Array.prototype object. This object is then assigned as a property of the output object, leaking a live reference to Array.prototype. Subsequent writes to this property result in prototype pollution, enabling attackers to modify global prototype attributes. This can lead to arbitrary code execution or denial of service. The flaw is fixed in flatted version 3.4.2.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by providing specially crafted JSON input to the flatted parser, causing prototype pollution. This can result in arbitrary code execution or denial of service, impacting the confidentiality, integrity, and availability of affected systems. Products that use flatted versions prior to 3.4.2 and process untrusted JSON data are at risk if they do not sanitize input properly.
Mitigation Recommendations
A fix is available in flatted version 3.4.2. Users and vendors should upgrade to version 3.4.2 or later to remediate this vulnerability. Red Hat has issued advisories and is working on fixes for affected products that incorporate the flatted library. Until patched, avoid processing untrusted JSON data with vulnerable versions or apply input sanitization to prevent prototype pollution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-18T02:42:27.507Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-33228","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9742","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13826","vendor":"Red Hat"}]
Threat ID: 69bdd4681188d0bb0cbbf673
Added to database: 03/20/2026, 23:12:40 UTC
Last enriched: 08/17/2026, 13:16:32 UTC
Last updated: 09/17/2026, 17:36:06 UTC
Views: 281
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.