Skip to main content

parse-nested-form-data EUVDEUVD-2026-33723

| CVE-2026-45302 HIGH
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-05-18 https://github.com/milamer/parse-nested-form-data GHSA-xp7r-j8r6-j9h3
8.2
CVSS 3.1 · Vendor: https://github.com/milamer/parse-nested-form-data
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify endpoint calling parseFormData
  2. Delivery
    Craft FormData with __proto__.X field
  3. Exploit
    POST multipart form to server
  4. Install
    Parser walks onto Object.prototype
  5. C2
    Assignment pollutes global prototype
  6. Execute
    Subsequent requests read polluted property
  7. Impact
    Authorization 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

parse-nested-form-data < 1.0.1

Affected Packages

npm parse-nested-form-data fix: 1.0.1

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

Vendor (https://github.com/milamer/parse-nested-form-data) PRIMARY 8.2 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

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:

js
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]=yes
  • a.__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.1

Workarounds

If upgrading is not possible, validate field names before calling parseFormData():

js
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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy