CVE-2026-107353traverse: set() can write to built-in prototypes via an untrusted path
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-traverse | Fix pending | UBUNTU-CVE-2026-107353 | |
| Ubuntu 26.04 | node-traverse | Under investigation | UBUNTU-CVE-2026-107353 | |
| Ubuntu 24.04 | node-traverse | Under investigation | UBUNTU-CVE-2026-107353 | |
| Ubuntu 22.04 | node-traverse | Under investigation | UBUNTU-CVE-2026-107353 | |
| Ubuntu 20.04 | node-traverse | Fix pending | UBUNTU-CVE-2026-107353 | |
| Ubuntu 18.04 | node-traverse | Fix pending | UBUNTU-CVE-2026-107353 | |
| Ubuntu 16.04 | node-traverse | Fix pending | UBUNTU-CVE-2026-107353 | |
| Debian 14 | node-traverse | Fixed | 0.6.14+~0.6.37-1 | DEBIAN-CVE-2026-107353 |
| Debian 13 | node-traverse | Fix pending | DEBIAN-CVE-2026-107353 | |
| Debian 12 | node-traverse | Fix pending | DEBIAN-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.
- ljharb traverse: affected: 0.3.6 to before 0.3.10, 0.4.0 to before 0.4.7, 0.5.0 to before 0.5.3, 0.6.0 to before 0.6.12; fixed in
0.3.10,0.4.7,0.5.3,0.6.12
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:
- https://github.com/ljharb/js-traverse/security/advisories/GHSA-rj28-8w7x-jmqc (vendor-advisory)
- https://github.com/ljharb/js-traverse/commit/81ccab43e379cf42eb2a5f689630f7f79b3d71b8 (patch)
- https://github.com/ljharb/js-traverse/commit/37a9ebd103d2a259c824c29cdcc3f0dfe1acffce (patch)
References
- https://github.com/ljharb/js-traverse/security/advisories/GHSA-rj28-8w7x-jmqc
- https://github.com/ljharb/js-traverse/commit/81ccab43e379cf42eb2a5f689630f7f79b3d71b8
- https://github.com/ljharb/js-traverse/commit/37a9ebd103d2a259c824c29cdcc3f0dfe1acffce
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.