Security Resilience

CVE-2026-35209

Unjs Defu ≤ 6.1.5

Published
06 April 2026
Modified
21 July 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.0059 42th percentile
Risk Priority 58 floored blend · peak EPSS

CVSS 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

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

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-31865Shared CWE-1321
CVE-2024-36582Shared CWE-1321
CVE-2026-57926Shared CWE-1321
CVE-2025-55195Shared CWE-1321
CVE-2023-26132Shared CWE-1321
CVE-2026-97151Shared CWE-1321
CVE-2025-62381Shared CWE-1321
CVE-2026-46509Shared CWE-1321
CVE-2025-34146Shared CWE-1321
CVE-2026-9101Shared CWE-1321

Affected Assets

unjs
defu
≤ 6.1.5

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • 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.

PR.PS-06 mostly match
blocks

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.

finds

Security testing in development catches prototype-pollution flaws before release.

prevents

Secure coding standards directly prohibit unsafe prototype attribute assignment and require defensive checks.

prevents

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.

blocks

Change-management processes ensure security fixes for prototype-pollution issues are tracked and deployed.

finds

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`.

References