Approved changes feed: RSS · Atom
cpe:2.3:a:unjs:defu:*:*:*:*:*:node.js:*:*
part: a version: * update: *
| Vendor | Unjs (b9c5145d-4490-5a57-bc54-95e579348a71) |
|---|---|
| Product | Defu (9f22fd0e-03fa-5e13-8f43-92408e0c80a5) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | node.js |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/unjs/defu |
purl2cpe | 2026-06-01 10:11:35.483678 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-35209 |
vulnerable | 2026-06-08 07:59:13.722013 |
defu: Prototype pollution via `__proto__` key in defaults argument
HIGH (7.5)
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.
Published: 2026-04-06T17:26:52.975Z
Updated: 2026-04-06T18:49:29.040Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.