# CVE-2026-8657: jsondiffpatch patch APIs are vulnerable to prototype pollution

- Severity: High 8.8 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-16T05:00:09.867Z
- Modified: 2026-09-10T03:51:05.988Z
- Also known as: GHSA-j4fx-xxwh-2485
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- jsondiffpatch: before 0.7.6
- org.webjars.npm:jsondiffpatch: before *
- jsondiffpatch (npm): before 0.7.6

## Every score

- snyk: CVSS:4.0 8.8 High `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`
- snyk: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L/E:P`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:4.0 High `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`

## References

- <https://gist.github.com/yuki-matsuhashi/e570fb1579ae1f3190059b622b0473fb> (exploit, web)
- <https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16322990> (web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-16732792> (web)
- <https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L82-L87> (web)
- <https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/filters/nested.ts%23L107-L115> (web)
- <https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L146-L168> (web)
- <https://github.com/benjamine/jsondiffpatch/blob/96112c35a98f9201dd75d67fcee68a952c79e2fe/packages/jsondiffpatch/src/formatters/jsonpatch-apply.ts%23L171-L199> (web)
- <https://github.com/benjamine/jsondiffpatch/commit/381c0125efab49f6f0dbc08317d01d55717672af> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-8657> (advisory)
- <https://github.com/benjamine/jsondiffpatch> (package)

## Sources

- CVE List: [CVE-2026-8657](https://www.cve.org/CVERecord?id=CVE-2026-8657), CVE Terms of Use, modified 2026-08-23
- GitHub Advisory Database: [GHSA-j4fx-xxwh-2485](https://github.com/advisories/GHSA-j4fx-xxwh-2485), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-8657](https://nvd.nist.gov/vuln/detail/CVE-2026-8657), Public domain, modified 2026-07-05

---

Page: https://cve.day/CVE-2026-8657 · Whole record: https://cve.day/CVE-2026-8657.json · Rebuilt by cve.day 2026-11-25T22:59:21.884Z
