Approved changes feed: RSS · Atom

cpe:2.3:a:unjs:defu:*:*:*:*:*:node.js:*:*

part: a version: * update: *

VendorUnjs (b9c5145d-4490-5a57-bc54-95e579348a71)
ProductDefu (9f22fd0e-03fa-5e13-8f43-92408e0c80a5)
Edition*
Language*
Software edition*
Target softwarenode.js
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/unjs/defu purl2cpe 2026-06-01 10:11:35.483678

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
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
Reference links
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.