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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-06-19T20:47:52.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-hp36-v28f-w3r4
- Weaknesses: CWE-915, CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- joaonuno flat-to-nested-js: < 1.1.2
- flat-to-nested (npm): before 1.1.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/joaonuno/flat-to-nested-js/security/advisories/GHSA-hp36-v28f-w3r4> (web)
- <https://github.com/joaonuno/flat-to-nested-js/commit/680a5ebe1194edda16fa93baaa56ff14fe0e3d7f> (web)
- <https://github.com/joaonuno/flat-to-nested-js/releases/tag/v1.1.2>
- <https://github.com/joaonuno/flat-to-nested-js> (package)

## Sources

- CVE List: [CVE-2026-55091](https://www.cve.org/CVERecord?id=CVE-2026-55091), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-hp36-v28f-w3r4](https://github.com/advisories/GHSA-hp36-v28f-w3r4), CC-BY-4.0, modified 2026-06-19
- NVD: [CVE-2026-55091](https://nvd.nist.gov/vuln/detail/CVE-2026-55091), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-55091 · Whole record: https://cve.day/CVE-2026-55091.json · Rebuilt by cve.day 2026-11-25T22:59:38.332Z
