Skip to main content
← All vulnerabilities
CVE-2026-55091GHSA-HP36-V28F-W3R4

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • joaonuno flat-to-nested-js

    fixed in 1.1.2

  • flat-to-nestednpm

    fixed in 1.1.2

References 3

GitHub · joaonuno/flat-to-nested-js