Findings

CVE-2026-35209

defu is software that allows uers to assign default properties recursively.

Published Apr 6, 2026 · updated Jul 21, 2026 · unjs defu

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 are vulnerable to prototype pollution. A crafted payload containing a key can override intended default values in the merged resul. The internal function used to copy the defaults object. invokes the setter, which replaces the resulting object's with attacker-controlled values. Properties inherited from the polluted prototype then bypass the existing key guard in the loop and land in the final result. Version 6.1.5 replaces with object spread ( ), which uses and does not invoke the setter.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Apr 6, 2026 · NIST NVD

    Detected

    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 are vulnerable to prototype pollution. A crafted payload containing a key can override intended default values in the merged resul. The i

  2. Jul 21, 2026 · NIST NVD

    Updated

    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 are vulnerable to prototype pollution. A crafted payload containing a key can override intended default values in the merged resul. The i

Affected

  • cpe unjs/defuversion unspecified

Sources

  • CVE.orgVulnerability recordCVE-2026-35209

    Official CVE identifier

    cve.org
  • NIST NVDVulnerability recordCVE-2026-35209

    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 are vuln

    nvd.nist.gov

References