Skip to main content

CVE-2026-107353: CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in ljharb traverse

0
Medium
VulnerabilityCVE-2026-107353cvecve-2026-107353cwe-1321
Published: 10/07/2026 (10/07/2026, 19:35:15 UTC)
Source: CVE Database V5
Vendor/Project: ljharb
Product: traverse

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.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

ljharb

traverse

Affected versions
>=0.3.6 <0.3.10>=0.4.0 <0.4.7>=0.5.0 <0.5.3>=0.6.0 <0.6.12
traverse
pkg:npm/traverse
Affected versions
>=0.3.6 <0.3.10>=0.4.0 <0.4.7>=0.5.0 <0.5.3>=0.6.0 <0.6.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/07/2026, 20:03:34 UTC

Technical Analysis

The ljharb traverse package suffers from a prototype pollution vulnerability (CWE-1321) in multiple version ranges. The issue arises when the set() method is called with a path that crosses a primitive value, causing the next path segment to resolve on the primitive's built-in prototype. This allows an attacker who can supply an untrusted path to set() to add or overwrite properties on prototypes such as String.prototype, Number.prototype, or Boolean.prototype. Object.prototype is not directly reachable except through complex non-data paths. The vulnerability is addressed in versions 0.3.10, 0.4.7, 0.5.3, and 0.6.12.

Potential Impact

An attacker able to supply untrusted input to the set() function can perform prototype pollution on built-in JavaScript prototypes, potentially leading to unexpected behavior or security issues in applications using the vulnerable versions of traverse. The impact is limited to prototype pollution of primitive prototypes and does not directly affect Object.prototype under normal conditions. No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade to traverse versions 0.3.10, 0.4.7, 0.5.3, or 0.6.12 or later, where this prototype pollution vulnerability is fixed. No other mitigation is required as the fix is official and available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
harborist
Date Reserved
2026-10-07T19:20:21.848Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ac6a24f2cdf04f6567959c0

Added to database: 10/07/2026, 19:49:35 UTC

Last enriched: 10/07/2026, 20:03:34 UTC

Last updated: 10/07/2026, 21:04:06 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses