Skip to main content

CVE-2026-55091: CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes in joaonuno flat-to-nested-js

0
High
VulnerabilityCVE-2026-55091cvecve-2026-55091cwe-915cwe-1321
Published: 09/14/2026 (09/14/2026, 17:26:38 UTC)
Source: CVE Database V5
Vendor/Project: joaonuno
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

joaonuno

flat-to-nested-js

Affected versions
<1.1.2
flat-to-nested-js
pkg:npm/flat-to-nested-js
Affected versions
<1.1.2

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

AILast updated: 09/14/2026, 18:01:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses