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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
defunpm | < 6.1.5 | 6.1.5 |
Affected products
12- osv-coords11 versionspkg:apk/chainguard/gitlab-rails-ce-19.0pkg:apk/chainguard/gitlab-rails-ce-fips-18.1pkg:apk/chainguard/gitlab-rails-ce-fips-19.1pkg:apk/chainguard/jitsucom-jitsu-consolepkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/renovatepkg:apk/wolfi/jitsucom-jitsu-consolepkg:apk/wolfi/langfuse-3-workerpkg:apk/wolfi/renovatepkg:npm/defu
< 19.0.3-r1+ 10 more
- (no CPE)range: < 19.0.3-r1
- (no CPE)range: < 18.1.6-r15
- (no CPE)range: < 19.1.1-r1
- (no CPE)range: < 2.11.0-r19
- (no CPE)range: < 3.164.0-r1
- (no CPE)range: < 3.164.0-r1
- (no CPE)range: < 43.104.7-r1
- (no CPE)range: < 2.11.0-r19
- (no CPE)range: < 3.164.0-r1
- (no CPE)range: < 43.104.7-r1
- (no CPE)range: < 6.1.5
Patches
Vulnerability mechanics
References
6- github.com/unjs/defu/commit/3942bfbbcaa72084bd4284846c83bd61ed7c8b29nvdPatchWEB
- github.com/unjs/defu/pull/156nvdIssue TrackingPatchWEB
- github.com/advisories/GHSA-737v-mqg7-c878ghsaADVISORY
- github.com/unjs/defu/security/advisories/GHSA-737v-mqg7-c878nvdMitigationVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-35209ghsaADVISORY
- github.com/unjs/defu/releases/tag/v6.1.5nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.