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.
References9
- gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb
- github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67…
- github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67…
- github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67…
- github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67…
- github.com/benjamine/jsondiffpatch/commit/381c0125efab49f6f0dbc…
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16732792
- security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16322990
- gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb
Metrics
- CVSS 3.1
-
8.2
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L - CVSS 4.0
-
7.8
HIGH
Score source: CNA
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 32 · as of 14 November 2026
- CWE
- CWE-1321
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.