CVE-2026-107353
published medium CVSS 4.0 · 6.9traverse: set() can write to built-in prototypes via an untrusted path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ljharb | — | traverse0.3.6 to < 0.3.10 · 0.4.0 to < 0.4.7 · 0.5.0 to < 0.5.3 · 0.6.0 to < 0.6.12 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- harborist · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | harborist · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ljharb | traverse | 0.3.6 to < 0.3.10 (affected · semver)0.4.0 to < 0.4.7 (affected · semver)0.5.0 to < 0.5.3 (affected · semver)0.6.0 to < 0.6.12 (affected · semver)Default: unaffected | harborist · cna |
Weaknesses
1- CWE-1321 CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
3Provider assertions
2harborist · cna
traverse: set() can write to built-in prototypes via an untrusted path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8ab19ca72dde5a323fe3aca18ada20ce2a6d4c9bf6076ebe31ab3a115c4a8d4c
- Ingested
- 07 Oct 2026, 22:39:26 UTC
- Source record
- Official CVE record