CVEfocus › CVE database › CVE-2026-107353

CVE-2026-107353traverse: set() can write to built-in prototypes via an untrusted path

CVSS 6.5 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2026-10-07Updated 2026-10-07Assigner: harborist

traverse (npm) versions 0.3.6 through 0.3.9, 0.4.0 through 0.4.6, 0.5.0 through 0.5.2, and 0.6.0 through 0.6.11 allow prototype pollution through set(). When the path passed to set() crosses a primitive value, the next path segment is resolved on that primitive's built-in prototype, so an application that passes an untrusted path to set() lets an attacker add or overwrite properties of String.prototype, Number.prototype, or Boolean.prototype using plain JSON data, for example traverse({ name: 'bob' }).set(['name', '__proto__', 'polluted'], 'yes'). Object.prototype was reachable only with a non-data path segment, such as an object whose toString returns a different value on each call, or through a Proxy that accepts an assignment without storing it. This is fixed in 0.3.10, 0.4.7, 0.5.3, and 0.6.12.

CWE-1321

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
6Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-traverseFix pendingUBUNTU-CVE-2026-107353
Ubuntu 26.04node-traverseUnder investigationUBUNTU-CVE-2026-107353
Ubuntu 24.04node-traverseUnder investigationUBUNTU-CVE-2026-107353
Ubuntu 22.04node-traverseUnder investigationUBUNTU-CVE-2026-107353
Ubuntu 20.04node-traverseFix pendingUBUNTU-CVE-2026-107353
Ubuntu 18.04node-traverseFix pendingUBUNTU-CVE-2026-107353
Ubuntu 16.04node-traverseFix pendingUBUNTU-CVE-2026-107353
Debian 14node-traverseFixed0.6.14+~0.6.37-1DEBIAN-CVE-2026-107353
Debian 13node-traverseFix pendingDEBIAN-CVE-2026-107353
Debian 12node-traverseFix pendingDEBIAN-CVE-2026-107353

What the vendor says

As published in the CVE record by harborist, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to traverse 0.6.12 or later, or, on older release lines, to 0.5.3, 0.4.7, or 0.3.10.

Workaround: Do not pass untrusted paths to set(). If that is not possible, require every path segment to be a string other than __proto__, constructor, or prototype, and confirm that each intermediate value along the path is an object before calling set().

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.