CVE-2026-35209
Unjs Defu ≤ 6.1.5
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-35209 is a high-severity Prototype Pollution (CWE-1321) vulnerability in Unjs Defu. Its CVSS base score is 7.5 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked at the 42th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-35209 is a prototype pollution vulnerability (CWE-1321) affecting the defu library prior to version 6.1.5. Defu is a utility that recursively assigns default properties to objects. The issue arises in applications that pass unsanitized user input—such as parsed JSON request bodies, database records, or config files from untrusted sources—as the first argument to the defu() function.
Remote unauthenticated attackers can exploit this vulnerability by supplying a crafted payload containing a __proto__ key. The internal _defu function copies defaults using Object.assign({}, defaults), which invokes the __proto__ setter and replaces the resulting object's [[Prototype]] with attacker-controlled values. Inherited properties from the polluted prototype then bypass the existing __proto__ key guard in the for...in loop, appearing in the final merged result and overriding intended defaults. The CVSS 3.1 base score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N), enabling high integrity impacts without privileges or user interaction.
Version 6.1.5 mitigates the vulnerability by replacing Object.assign({}, defaults) with object spread ({ ...defaults }), which relies on [[DefineOwnProperty]] and avoids invoking the __proto__ setter. Security practitioners should upgrade to 6.1.5 or later. Details are in the GitHub security advisory (GHSA-737v-mqg7-c878), pull request #156, commit 3942bfbbcaa72084bd4284846c83bd61ed7c8b29, and release notes for v6.1.5.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-19394
Vulnerability Data
defu is software that allows uers to assign default properties recursively. Prior to version 6.1.5, applications that pass unsanitized user input (e.g. parsed JSON request bodies, database records, or config files from untrusted sources) as the first argument to `defu()`…
more
are vulnerable to prototype pollution. A crafted payload containing a `__proto__` key can override intended default values in the merged resul. The internal `_defu` function used `Object.assign({}, defaults)` to copy the defaults object. `Object.assign` invokes the `__proto__` setter, which replaces the resulting object's `[[Prototype]]` with attacker-controlled values. Properties inherited from the polluted prototype then bypass the existing `__proto__` key guard in the `for...in` loop and land in the final result. Version 6.1.5 replaces `Object.assign({}, defaults)` with object spread (`{ ...defaults }`), which uses `[[DefineOwnProperty]]` and does not invoke the `__proto__` setter.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V15.3.6
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require input validation and safe property assignment to prevent prototype pollution.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches prototype-pollution flaws before release.
Secure coding standards directly prohibit unsafe prototype attribute assignment and require defensive checks.
A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so it reduces ordinary software weaknesses in delivered code the way those practices do; prototype pollution is such a weakness, but the clause's ceiling on `prevents` is `partial` because the effect depends on the supplier's implementation of secure coding and testing.
Change-management processes ensure security fixes for prototype-pollution issues are tracked and deployed.
A.8.8's reach is DISCLOSURE — it sees only instances that carry a vendor-published flaw. Prototype pollution does commonly surface as CVEs in third-party libraries (lodash, jQuery, etc., as the observed examples show), so A.8.8 finds those. But most prototype pollution lives in first-party JavaScript code that nobody publishes an advisory about, and that share is invisible to A.8.8's disclosure-based programme — the same scope seam that put A.8.8 -> CWE-89 at `partial`.