Prototype Pollution
Description
Prototype Pollution in json-pointer before 0.6.1 allows attackers to pollute Object prototype via crafted JSON pointer with multiple slashes.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Prototype Pollution in json-pointer before 0.6.1 allows attackers to pollute Object prototype via crafted JSON pointer with multiple slashes.
Vulnerability
Overview
The json-pointer library (npm package) provides utilities for working with JSON pointers as defined in RFC 6901. Versions prior to 0.6.1 are vulnerable to Prototype Pollution due to insufficient validation of pointer paths. The library's set() and related functions accept pointer strings that can include multiple slashes, allowing an attacker to traverse beyond intended object properties and reach JavaScript's built-in prototypes such as __proto__, constructor, or prototype [1][4]. This flaw enables the injection of arbitrary properties into the base Object.prototype.
Exploitation
Prerequisites
Exploitation requires the attacker to control the pointer argument passed to functions like set(), get(), or remove(). No authentication or special network position is needed if the library processes user-supplied pointers. For example, a malicious pointer like /__proto__/polluted would set Object.prototype.polluted to a value chosen by the attacker [2][3]. The attack is straightforward and does not require complex chaining.
Impact
Successful prototype pollution can have severe consequences. By polluting Object.prototype, the attacker can alter the behavior of all objects in the application, leading to denial of service (e.g., causing exceptions), property injection that bypasses security checks, or in some contexts, remote code execution if the polluted property influences code paths [2][3]. The exact impact depends on how the application uses the polluted properties.
Mitigation
The vulnerability is fixed in json-pointer version 0.6.1. Users should update to this version or later. No workarounds are documented; the safest mitigation is to upgrade the package [1][4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
json-pointernpm | < 0.6.1 | 0.6.1 |
org.webjars.npm:json-pointerMaven | < 0.6.1 | 0.6.1 |
Affected products
3- json-pointer/json-pointerdescription
- ghsa-coords2 versions
< 0.6.1+ 1 more
- (no CPE)range: < 0.6.1
- (no CPE)range: < 0.6.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
7- github.com/advisories/GHSA-7mg4-w3w5-x5pcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-7709ghsaADVISORY
- github.com/manuelstofer/json-pointer/pull/34ghsaWEB
- github.com/manuelstofer/json-pointer/pull/34/filesghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-598862ghsax_refsource_MISCWEB
- snyk.io/vuln/SNYK-JS-JSONPOINTER-596925ghsax_refsource_MISCWEB
- www.npmjs.com/package/json-pointerghsaWEB
News mentions
0No linked articles in our index yet.