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

- Severity: Medium 6.9 (CVSS:4.0, scored by harborist) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-10-07T19:35:15.351Z
- Modified: 2026-10-08T21:34:48.800Z
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: harborist

## Description

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.

(As written by CVE List.)

## Affected

- traverse: from 0.3.6 before 0.3.10; from 0.4.0 before 0.4.7; from 0.5.0 before 0.5.3; from 0.6.0 before 0.6.12

## Every score

- harborist: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- harborist: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <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)

## Sources

- CVE List: [CVE-2026-107353](https://www.cve.org/CVERecord?id=CVE-2026-107353), CVE Terms of Use, modified 2026-10-07
- NVD: [CVE-2026-107353](https://nvd.nist.gov/vuln/detail/CVE-2026-107353), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-107353 · Whole record: https://cve.day/CVE-2026-107353.json · Rebuilt by cve.day 2026-11-25T22:59:43.090Z
