{"id":"CVE-2026-55091","published":"2026-09-14T17:26:38Z","modified":"2026-09-14T20:05:59Z","title":"flat-to-nested: Prototype pollution in flat-to-nested convert() via __proto__ parent/id key","vendor":"joaonuno","product":"flat-to-nested-js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00497,"percentile":0.43547,"provenance":"source"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/joaonuno/flat-to-nested-js/security/advisories/GHSA-hp36-v28f-w3r4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/joaonuno/flat-to-nested-js/commit/680a5ebe1194edda16fa93baaa56ff14fe0e3d7f","tags":["x_refsource_MISC"]},{"url":"https://github.com/joaonuno/flat-to-nested-js/releases/tag/v1.1.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":8.71},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"joaonuno","affectedVersions":[{"vendor":"joaonuno","product":"flat-to-nested-js","versions":["< 1.1.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-14T19:22:11.687253Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"flat-to-nested","vulnerableRanges":["<1.1.2"],"patched":["1.1.2"],"from":["GHSA-hp36-v28f-w3r4"],"provenance":"source"}],"summary":{"text":"The flat-to-nested-js package (by joaonuno) has a prototype pollution flaw in the convert() method of FlatToNested in index.js, where attacker-influenced id and parent fields are used as keys in plain objects, so a value of __proto__ can reach Object.prototype. An attacker who can supply flat records to convert() over the network, with no authentication or user interaction, can write attacker-controlled data into the global prototype, corrupting application logic or causing denial of service and potentially enabling greater impact where a downstream gadget exists.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:49Z"},"euvd":{"id":"EUVD-2026-77691","exploited":false,"provenance":"source"}}