CVE-2026-35209
Description
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()` 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.
Description as published by the source, in English.
Key facts
- Published
- 2026-04-06
- Last modified
- 2026-07-21
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.4 %
higher than 33 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| defu (npm) | < 6.1.5 | Affected | |
| Unjs | Defu | < 6.1.5 | Affected |
Weakness type
-
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1574.010: Services File Permissions Weakness
References
- https://github.com/unjs/defu/commit/3942bfbbcaa72084bd4284846c83bd61ed7c8b29
- https://github.com/unjs/defu/pull/156
- https://github.com/unjs/defu/releases/tag/v6.1.5
- https://github.com/unjs/defu/security/advisories/GHSA-737v-mqg7-c878
Related at Berigo
Articles
-
Attackers picked up the SharePoint exploit code the day after it was published
Same product
2026-08-14
On 11 August 2026 Rapid7 published a technical analysis of CVE-2026-55040 in Microsoft SharePoint, together with code showing how the flaw is exploit…
-
Exploitation observed of critical Oracle E-Business Suite flaw
Same product
2026-06-29
Defused Cyber has observed exploitation attempts against CVE-2026-46817 in Oracle E-Business Suite Payments, a CVSS 9.8 flaw Oracle patched in May.
-
Critical FortiClient EMS flaw exploited before the advisory landed
Same product
2026-04-04
CVE-2026-35616 enables unauthenticated code execution in FortiClient EMS 7.4.5 and 7.4.6. Fortinet has issued a hotfix to install now.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.