Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Prototype Pollution via the jsondiffpatch.patch() and jsondiffpatch/formatters/jsonpatch.patch() APIs
Published May 16, 2026
8.8
HIGHCVSS 4.0
EPSS 0.67%
Description
Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Prototype Pollution via the jsondiffpatch.patch() and jsondiffpatch/formatters/jsonpatch.patch() APIs. An attacker can perform prototype pollution by supplying crafted delta or JSON Patch documents, as attacker-controlled property names and path segments are used to traverse and modify objects without restricting access to special properties like __proto__ or constructor.prototype, allowing modification of Object.prototype.
Affected products
- Vendor n/a Product Jsondiffpatch Defaultn/a
- Version 0StatusaffectedConstraints<0.7.6
- Version
- Vendor n/a Product Org.webjars.npm:jsondiffpatch Defaultn/a
- Version 0StatusaffectedConstraints<*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Jsondiffpatch | n/a |
| ||||||
| n/a | Org.webjars.npm:jsondiffpatch | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
jsondiffpatch
npm
Introduced 0 Fixed 0.7.6
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | jsondiffpatch | 0 | 0.7.6 |
Remediation
No remediation recorded yet.
References (10)
- https://gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb exploit
- https://github.com/advisories/GHSA-j4fx-xxwh-2485 Advisory
- https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L107-L115
- https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L82-L87
- https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L146-L168
- https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L171-L199
- https://github.com/benjamine/jsondiffpatch/commit/381c0125efab49f6f0dbc08317d01d55717672af
- https://nvd.nist.gov/vuln/detail/CVE-2026-8657
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16732792
- https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16322990
Change history (0)
No recorded changes yet.