{"id":"CVE-2026-8657","aliases":["CVE-2026-8657","GHSA-j4fx-xxwh-2485"],"related":[],"kind":"vulnerability","state":"published","title":"jsondiffpatch patch APIs are vulnerable to prototype pollution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-05-16T05:00:09.867Z","modified":"2026-09-10T03:51:05.988Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","vector":"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","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","vector":"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","score":8.8,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.7.6","status":"affected"}],"product":"jsondiffpatch","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"org.webjars.npm:jsondiffpatch","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.6"}],"ecosystem":"npm","package":"jsondiffpatch","purl":"pkg:npm/jsondiffpatch","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16322990","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16732792","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L82-L87","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L107-L115","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L146-L168","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L171-L199","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/benjamine/jsondiffpatch/commit/381c0125efab49f6f0dbc08317d01d55717672af","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8657","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/benjamine/jsondiffpatch","tags":["package"],"sources":["ghsa"]}],"credits":["Yuki Matsuhashi"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-18T13:39:14.116Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8657","url":"https://www.cve.org/CVERecord?id=CVE-2026-8657","licence":"CVE Terms of Use","modified":"2026-08-23T15:25:14.637Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j4fx-xxwh-2485","url":"https://github.com/advisories/GHSA-j4fx-xxwh-2485","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:05.988Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8657","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8657","licence":"Public domain","modified":"2026-07-05T16:19:45.200Z"}],"updatedAt":"2026-11-25T22:59:21.884Z","epss":{"score":0.00378,"percentile":0.33895,"date":"2026-12-01T12:00:22.000Z"}}