Vulnerability details

CVE-2026-55091

joaonuno flat-to-nested-js

flat-to-nested: Prototype pollution in flat-to-nested convert() via __proto__ parent/id key

CVSS 3.1
7.5High

Official 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 scores

ScoreVersionSourceVector
7.5High 3.1 CVEProject cvelistV5 (CNA) (GitHub_M) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersionsSource
joaonuno flat-to-nested-js < 1.1.2 CVEProject cvelistV5 (CNA)

References and advisories

3
Kolun on Telegram @kolunsec Exploited CVEs, key news and a daily digest Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2026-09-14
Last updated
2026-09-14
State
Published
Assigner (CNA)
GitHub_M

Exploit prediction (EPSS)

0.49%
Probability of exploitation in 30 days
42.9%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
Yes
Exploitation
None
Technical impact
Partial

Weaknesses (CWE)

  • CWE-915
    Improperly Controlled Modification of Dynamically-Determined Object Attributes
  • CWE-1321
    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')