Skip to main content

form-data-objectizer CVE-2026-46510

| EUVDEUVD-2026-33321 HIGH
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-05-18 https://github.com/kaspernj/form-data-objectizer GHSA-m2hg-wjq3-28wq
8.2
CVSS 3.1 · Vendor: https://github.com/kaspernj/form-data-objectizer
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint using form-data-objectizer
  2. Delivery
    Send HTTP form with __proto__[x]=y
  3. Exploit
    Parser walks into Object.prototype
  4. Execution
    Object.prototype mutated process-wide
  5. Persist
    Subsequent requests inherit polluted property
  6. Impact
    Trigger downstream gadget (auth bypass or crash)

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 target Node.js application must import form-data-objectizer (<= 1.0.0) and pass attacker-controlled FormData into FormDataToObject.toObject() on a request path reachable by the attacker; no authentication, user interaction, or non-default configuration is required, and any HTTP client can submit the bracket-notation key (__proto__[x] or constructor[prototype][x]). Real-world impact is gated by what the host application later does with plain objects - exploitability of the prototype pollution into RCE, auth bypass, or DoS depends on the presence of a downstream gadget in the rest of the dependency tree, and pollution is scoped to the lifetime of the Node.js worker process that handled the malicious request.

Impact

The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L genuinely matches the bug: any HTTP client can deliver the payload, no authentication or user interaction is needed, complexity is low, and impact concentrates on Integrity (mutating semantics of every object) with secondary Availability impact (worker crashes/DoS via polluting properties used by other libraries). A working proof of concept is included in the GitHub Security Advisory, raising real-world exploitability. The mitigating factor is reach: form-data-objectizer is a niche package with effectively one published version (1.0.0) and presumably a small install base, so absolute exposure is limited even though every install that calls toObject() on attacker-controlled FormData is exploitable. EPSS and CISA KEV data were not provided, so widespread automated exploitation cannot be confirmed; treat the issue as high priority for any application that actually depends on this package, lower priority at a fleet level given the narrow ecosystem footprint. The advisory text initially says 'Not yet' patched, but the multi-source intel and commit diff confirm a fixed release 1.0.1 - verify the actual installed version rather than relying on the prose.

Exploit ScenarioDerived

An attacker submits a normal-looking HTTP POST (HTML form or fetch/curl) to any endpoint that feeds the request body into FormDataToObject.toObject(), including a field named __proto__[polluted] with value yes (or constructor[prototype][isAdmin]=true). The library walks into Object.prototype and sets the property globally, so subsequent requests handled by the same worker process see {}.isAdmin === true, enabling authorization bypass, config tampering, or worker crashes (DoS) when other libraries trip over the injected property. A working PoC is published in the GitHub Security Advisory.

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 form-data-objectizer (<= 1.0.0) lets unauthenticated remote attackers mutate Object.prototype by submitting a single HTTP form field whose name uses bracket notation such as __proto__[polluted] or constructor[prototype][polluted]. The defect lives in treatInitial/treatSecond inside index.cjs, where an 'in' check walks the prototype chain and lets the parser write to inherited properties. CVSS is 8.2 (High) with Integrity:High; publicly available exploit code exists (working PoC published in the GHSA advisory), but there is no public exploit identified as being used in attacks and no CISA KEV listing.

RemediationAI

Vendor-released patch: form-data-objectizer 1.0.1 - upgrade via 'npm install form-data-objectizer@^1.0.1' (or pin >=1.0.1) and redeploy so all worker processes restart, since pollution persists for the process lifetime. The fix commit https://github.com/kaspernj/form-data-objectizer/commit/7c54b99408e6e9cd6533b7245bf197dadc2a2dbc rejects key segments equal to __proto__, constructor, or prototype and switches the membership test to Object.prototype.hasOwnProperty.call; see the GHSA at https://github.com/kaspernj/form-data-objectizer/security/advisories/GHSA-m2hg-wjq3-28wq. If upgrading is not immediately possible, pre-filter incoming form keys at the web/middleware layer to drop or 400-reject any field whose name contains the substrings __proto__, constructor, or prototype before invoking toObject() (trade-off: legitimate fields literally named 'constructor' or 'prototype' will be blocked), or fork the library to apply the published guard locally. Avoid 'merge this with a safe default' style mitigations that still hand attacker-controlled keys to the vulnerable parser.

Affected VersionsENISA

form-data-objectizer < 1.0.1

Affected Packages

npm form-data-objectizer 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

form-data-objectizer is a small Node.js helper that converts a FormData object into a nested JavaScript object by parsing bracket-notation keys (e.g. user[address][city]) and recursively walking into sub-objects. The root cause is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes, a.k.a. Prototype Pollution): the parser uses the JavaScript 'in' operator, which traverses the prototype chain, so the literal key __proto__ resolves to Object.prototype and subsequent assignments mutate that shared prototype. Because every plain object in Node.js inherits from Object.prototype, a single tainted form submission can change the meaning of property lookups across the entire Node.js process. The CPE pkg:npm/form-data-objectizer identifies the affected package, and the commit diff (7c54b99) shows the fix introduces an assertSafeKeySegment guard for __proto__, constructor, and prototype, replaces 'in' with Object.prototype.hasOwnProperty.call (hasOwn), and adds regression tests.

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/kaspernj/form-data-objectizer) 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/kaspernj/form-data-objectizer) · only source for this CVE.

CVSS VectorVendor: https://github.com/kaspernj/form-data-objectizer

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

DescriptionCVE.org

Summary

form-data-objectizer walks bracket-notation form keys (e.g. name[sub]) into nested objects without filtering __proto__, constructor, or prototype. A single HTTP form field whose name starts with __proto__[...] causes the library to mutate Object.prototype, which is a prototype pollution primitive of the entire Node.js process.

The bug is in treatInitial and treatSecond inside index.cjs:

js
if (inputName in result) {           // 'in' walks the prototype chain, so '__proto__' matches
  newResult = result[inputName]      // newResult === Object.prototype
}
// ...
result[key] = value                  // sets the property on Object.prototype

With the form key __proto__[polluted] and value yes:

  1. treatInitial matches inputName = "__proto__", rest = "[polluted]".
  2. "__proto__" in result is true (inherited), so newResult = result["__proto__"], which is Object.prototype.
  3. treatSecond recurses with key = "polluted", newRest = "", and assigns Object.prototype.polluted = "yes".

Affected versions

  • form-data-objectizer <= 1.0.0 (currently the only published version)

Patched

Not yet. Suggested fix: reject any segment equal to __proto__, constructor, or prototype before walking into result[inputName] / result[key]. Either throw or skip the entry.

Minimum patch in treatInitial and treatSecond:

js
const REJECT = new Set(['__proto__', 'constructor', 'prototype']);
if (REJECT.has(inputName) || REJECT.has(key)) {
  return; // or throw
}

Using Object.create(null) for the result object would also work since it has no prototype to pollute, but the key === '__proto__' direct write still needs guarding.

Proof of concept

Fresh install on Node 18+:

sh
mkdir pp-fdo && cd pp-fdo
npm init -y
npm install form-data-objectizer@1.0.0
js
// poc.js
const FormDataToObject = require('form-data-objectizer');

const form = new FormData();
form.append('username', 'alice');
form.append('__proto__[polluted]', 'yes');

FormDataToObject.toObject(form);
console.log(({}).polluted); // -> 'yes'

Observed output:

package version: 1.0.0
before pollution: undefined
after pollution:  yes
parsed data:     { username: 'alice' }
confirmed:       YES, prototype polluted

The field name __proto__[polluted] is the kind of value an attacker can submit from any HTML form or HTTP client. After the call, every plain object in the process inherits polluted = 'yes'. The visible parsed output drops the malicious key, so the attack leaves no obvious trace in request logs that show parsed bodies.

A second working payload is constructor[prototype][polluted]=yes, which walks result.constructor then .prototype.

Impact

  • Default-reachable prototype pollution via a single unauthenticated HTTP form submission, in any Node.js application that uses form-data-objectizer.toObject() on incoming form data.
  • Persists for the life of the worker process and affects every subsequent request handled by the same process.
  • Direct downstream consequences depend on the host application and the rest of its dependency tree, but typical risks include: bypassing if (obj.isAdmin) style checks, injecting unintended config values into objects merged with user input, breaking template rendering, and crashing the worker by polluting properties used by other libraries (DoS).

CVSS

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L (8.2, High)

Integrity is High because the primitive lets the attacker change the meaning of property reads on every object in the process. Confidentiality is None and Availability is Low without a named downstream gadget; both could be higher in a specific consuming app.

Credit

Reported by Mohamed Bassia (@0xBassia).

Executive ViewAI

Why It Matters

The form-data-objectizer npm package (versions 1.0.0 and earlier) contains a prototype pollution vulnerability that allows unauthenticated remote attackers to manipulate application object properties through HTTP form submissions. Organizations using this dependency in production risk data integrity compromise and unauthorized application behavior modification. Publicly available exploit code exists, increasing immediate risk to applications accepting form data through vulnerable package versions.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% 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

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