CVE-2026-55091: CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes in joaonuno flat-to-nested-js
flat-to-nested converts a hierarchy from a flat representation to a nested representation. Prior to 1.1.2, FlatToNested.prototype.convert in index.js uses attacker-influenced id and parent record fields directly as keys in the plain temp and pendingChildOf objects. When parent or id is __proto__, temp[parent] can resolve to Object.prototype, and initPush() can write attacker-controlled data to the global children prototype property while existing prototype methods remain intact. Any application that passes attacker-influenced flat records to convert() can therefore expose unrelated objects to polluted inherited state, causing application-logic corruption or denial of service and potentially enabling greater impact when a downstream prototype-pollution gadget is present. The constructor and prototype strings are also unsafe inherited-key values in the same lookup design. This issue is fixed in version 1.1.2.
AI Analysis
Technical Summary
The flat-to-nested-js library converts flat hierarchical data into nested structures. In versions before 1.1.2, the convert() function uses attacker-influenced id and parent record fields as keys in internal objects (temp and pendingChildOf) without proper validation. If these fields are set to '__proto__', the code modifies Object.prototype via temp[parent], enabling prototype pollution. This can corrupt application logic or cause denial of service, and may enable further exploitation if a downstream prototype-pollution gadget exists. The vulnerability also involves unsafe inherited-key values such as 'constructor' and 'prototype'. The flaw is resolved in version 1.1.2.
Potential Impact
Exploitation allows an attacker to perform prototype pollution by injecting properties into Object.prototype via specially crafted flat records. This can corrupt application logic or cause denial of service. While no direct confidentiality or availability impact is indicated, the integrity of application state can be compromised. The vulnerability has a CVSS 3.1 score of 7.5 (high severity), reflecting its potential to cause significant integrity issues without requiring privileges or user interaction.
Mitigation Recommendations
Upgrade to flat-to-nested-js version 1.1.2 or later, where this prototype pollution vulnerability is fixed. No other mitigation is required as the fix addresses the root cause by properly handling attacker-controlled keys.
CVE-2026-55091: CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes in joaonuno flat-to-nested-js
Description
flat-to-nested converts a hierarchy from a flat representation to a nested representation. Prior to 1.1.2, FlatToNested.prototype.convert in index.js uses attacker-influenced id and parent record fields directly as keys in the plain temp and pendingChildOf objects. When parent or id is __proto__, temp[parent] can resolve to Object.prototype, and initPush() can write attacker-controlled data to the global children prototype property while existing prototype methods remain intact. Any application that passes attacker-influenced flat records to convert() can therefore expose unrelated objects to polluted inherited state, causing application-logic corruption or denial of service and potentially enabling greater impact when a downstream prototype-pollution gadget is present. The constructor and prototype strings are also unsafe inherited-key values in the same lookup design. This issue is fixed in version 1.1.2.
CVSS v3.1
Score 7.5high
Affected software
joaonuno
flat-to-nested-js
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 flat-to-nested-js library converts flat hierarchical data into nested structures. In versions before 1.1.2, the convert() function uses attacker-influenced id and parent record fields as keys in internal objects (temp and pendingChildOf) without proper validation. If these fields are set to '__proto__', the code modifies Object.prototype via temp[parent], enabling prototype pollution. This can corrupt application logic or cause denial of service, and may enable further exploitation if a downstream prototype-pollution gadget exists. The vulnerability also involves unsafe inherited-key values such as 'constructor' and 'prototype'. The flaw is resolved in version 1.1.2.
Potential Impact
Exploitation allows an attacker to perform prototype pollution by injecting properties into Object.prototype via specially crafted flat records. This can corrupt application logic or cause denial of service. While no direct confidentiality or availability impact is indicated, the integrity of application state can be compromised. The vulnerability has a CVSS 3.1 score of 7.5 (high severity), reflecting its potential to cause significant integrity issues without requiring privileges or user interaction.
Mitigation Recommendations
Upgrade to flat-to-nested-js version 1.1.2 or later, where this prototype pollution vulnerability is fixed. No other mitigation is required as the fix addresses the root cause by properly handling attacker-controlled keys.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T14:41:54.578Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa8337755bf5e2cf564181b
Added to database: 09/14/2026, 17:48:39 UTC
Last enriched: 09/14/2026, 18:01:32 UTC
Last updated: 09/15/2026, 05:10:42 UTC
Views: 13
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.