CVE-2026-35209

Source
https://cve.org/CVERecord?id=CVE-2026-35209
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-35209.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-35209
Aliases
Downstream
Related
Published
2026-04-06T17:26:52.975Z
Modified
2026-07-11T03:54:45.119154979Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
defu: Prototype pollution via `__proto__` key in defaults argument
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-1321"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35209.json"
}
References

Affected packages

Git / github.com/unjs/defu

Affected ranges

Type
GIT
Repo
https://github.com/unjs/defu
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:unjs:defu:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "6.1.5"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.0.3
v0.0.4
v1.*
v1.0.0
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v3.*
v3.0.0
v3.0.1
v3.1.0
v3.2.0
v3.2.1
v3.2.2
v4.*
v4.0.0
v4.0.1
v5.*
v5.0.0
v5.0.1
v6.*
v6.0.0
v6.0.1
v6.1.0
v6.1.1
v6.1.2
v6.1.3
v6.1.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-35209.json"