Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify endpoint calling parseFormData
-
DeliveryCraft FormData with __proto__.X field
-
ExploitPOST multipart form to server
-
InstallParser walks onto Object.prototype
-
C2Assignment pollutes global prototype
-
ExecuteSubsequent requests read polluted property
-
ImpactAuthorization bypass or DoS
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable application must call parseFormData() from the parse-nested-form-data package (version <= 1.0.0) on FormData (or any Iterable<[string, string | File]>) whose field names are attacker-controllable - in practice, an HTTP server route that accepts multipart/form-data or any form submission and forwards it to this library. No authentication, user interaction, or non-default configuration is required (CVSS PR:N, UI:N, AC:L). Limiting factors: impact is bounded by what the host application does with plain objects afterward - apps that never read ambient/inherited properties off untyped objects may see little observable effect, while apps performing role checks like user.isAdmin against objects built from user input are directly subvertible. The exploit only mutates the running process's Object.prototype and does not persist across process restarts. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L (8.2 High) aligns cleanly with the technical facts: network-reachable, no authentication, no user interaction, with high integrity impact (prototype mutation corrupts application state) and low availability impact (potential DoS). Exploitation status is no public exploit identified at time of analysis - the package is not in CISA KEV and no EPSS score was provided in the input, so probability of mass exploitation cannot be quantified from available data. Real-world risk is heavily dependent on whether downstream applications pass attacker-controlled FormData directly to parseFormData() on an HTTP-exposed endpoint; libraries like this typically have a long transitive-dependency tail, so widespread but low-noise exploitation against specific consuming apps is plausible. EPSS data missing from input - flag explicitly. |
| Exploit ScenarioDerived | An attacker submits a multipart/form-data POST to any HTTP endpoint whose handler passes the parsed form to parseFormData(), including a single field named __proto__.isAdmin or __proto__[polluted] with an attacker-chosen value. Once parsing completes, every plain object in the Node.js process inherits the polluted property, which can subvert authorization checks that read ambient properties off objects, corrupt session/state objects, or trigger denial of service. A reproducible PoC is published in the GHSA advisory and CVE description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Prototype pollution in the npm package parse-nested-form-data version 1.0.0 and earlier allows unauthenticated remote clients to mutate Object.prototype of the running Node.js process by submitting a FormData field whose name contains __proto__ in bracket or dot notation. The flaw resides in handlePathPart in src/index.ts, which walks nested path segments without filtering reserved keys, so a single crafted field name pollutes the prototype chain of every plain object in the process. No public exploit identified at time of analysis, but a working proof-of-concept is published in the GHSA advisory itself.
RemediationAI
Vendor-released patch: upgrade to parse-nested-form-data 1.0.1 or later via npm install parse-nested-form-data@^1.0.1; the release is tagged at https://github.com/milamer/parse-nested-form-data/releases/tag/v1.0.1 and the fix commit is 527ad58eb486e32438f7198fb88315c20449d792, which adds a ForbiddenKeyError thrown when any path segment equals __proto__, constructor, or prototype before the object/array branching. If upgrade is blocked, the vendor-documented workaround is to pre-validate FormData field names with the regex /(^|\.)(__proto__|constructor|prototype)($|[.[])/ and reject matching names before invoking parseFormData(); the trade-off is that legitimate forms with fields literally named constructor or prototype will be rejected, and the validator must be applied at every call site. Dependabot and npm audit will surface this advisory automatically once 1.0.1 is published.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
parse-nested-form-data is a TypeScript/JavaScript library that converts a FormData iterable into a nested JavaScript object by interpreting bracket (a[b]) and dot (a.b) notation in field names. The root cause is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes): handlePathPart performs currentObject[pathPart.path] reads and writes during traversal, so when a segment equals __proto__, the read returns Object.prototype and the next assignment lands on the shared prototype. The CPE pkg:npm/parse-nested-form-data identifies the single affected npm package; constructor and prototype were also denylisted in the fix as defense in depth, even though constructor.prototype.x was incidentally blocked by an existing duplicate-key guard and array-index segments are restricted to digits by regex.
Know when Prototype Pollution gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Primary rating from Vendor (https://github.com/milamer/parse-nested-form-data) · only source for this CVE.
CVSS VectorVendor: https://github.com/milamer/parse-nested-form-data
DescriptionCVE.org
Summary
parseFormData() walks bracket and dot-notation FormData field names into nested objects without filtering reserved property keys. A single FormData field whose name begins with __proto__, or contains .__proto__. mid-path, causes the parser to traverse onto Object.prototype and assign properties there, polluting the prototype chain of every plain object in the running process.
Details
The vulnerability is in handlePathPart in src/index.ts, which performs currentObject[pathPart.path] and currentObject[pathPart.path] = val for object-type path segments without rejecting reserved keys. When the segment is __proto__, the read returns Object.prototype, which then becomes the next traversal target, and the next assignment lands on the prototype.
Reproduction on a fresh install of parse-nested-form-data@1.0.0:
import { parseFormData } from 'parse-nested-form-data';
const fd = new FormData();
fd.append('__proto__.polluted', 'yes');
parseFormData(fd);
console.log(({}).polluted); // -> 'yes'
console.log(([]).polluted); // -> 'yes'Equivalent vectors:
__proto__[polluted]=yesa.__proto__.polluted=yes(mid-path traversal)a[0].__proto__.polluted=yes(mid-path through an array element)
constructor.prototype.x was incidentally blocked by an existing duplicate-key guard (because Object is a function and failed the JSON-object check), but relying on that was fragile, so the fix denylists constructor and prototype as well as __proto__. The array branch (a[0], a[]) was not exploitable in practice - the regex restricts array-index segments to digit characters - but the forbidden-key check is applied before the object/array type branching as defense in depth, so any future change to the regex cannot reintroduce the issue.
Impact
Any application that passes attacker-controlled FormData (or any Iterable<[string, string | File]>) to parseFormData() - typically an HTTP server processing form submissions - allows an unauthenticated remote client to mutate Object.prototype of the running process via a single field name. Concrete consequences depend on the host application and may include corrupted application state, altered control flow in code that reads ambient properties off objects, and denial of service.
Patches
Fixed in 1.0.1. handlePathPart now throws a new ForbiddenKeyError (also exported) when any path segment is __proto__, constructor, or prototype, regardless of whether the segment would be used as an object key or an array index. The check runs before object/array type branching for defense in depth.
Upgrade:
npm install parse-nested-form-data@^1.0.1Workarounds
If upgrading is not possible, validate field names before calling parseFormData():
const FORBIDDEN = /(^|\.)(__proto__|constructor|prototype)($|[.[])/;
for (const [name] of formData.entries()) {
if (FORBIDDEN.test(name)) throw new Error('Unsafe field name');
}Resources
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
- Fix commit: 527ad58eb486e32438f7198fb88315c20449d792
Executive ViewAI
The parse-nested-form-data npm package (CVSS 8.2) is vulnerable to remote exploitation by any user due to prototype pollution, with published proof-of-concept code available. This supply-chain vulnerability affects all Node.js applications using this dependency, exposing them to data corruption and circumvention of security controls.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-33723
GHSA-xp7r-j8r6-j9h3
NVD
CVE.org
EPSS
Exploit-DB