# CVE-2025-9910: jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin

- Severity: Low 2.3 (CVSS:4.0, scored by snyk) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/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.35%, higher than 31% of CVEs (2026-12-02)
- Published: 2025-09-11T05:00:02.071Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-33vc-wfww-vjfv
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

Versions of the package jsondiffpatch before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin. An attacker can inject malicious scripts into HTML payloads that may lead to code execution if untrusted payloads were used as source for the diff, and the result renderer using the built-in html formatter on a private website.

(As written by CVE List.)

## Affected

- jsondiffpatch: before 0.7.2
- org.webjars.npm:jsondiffpatch: before *
- org.webjars.bower:jsondiffpatch: before *
- jsondiffpatch (npm): before 0.7.2

## Every score

- snyk: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- snyk: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031> (web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276> (web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277> (web)
- <https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14> (web)
- <https://github.com/benjamine/jsondiffpatch/issues/383> (web)
- <https://benjamine.github.io/jsondiffpatch/index.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-9910> (advisory)
- <https://github.com/benjamine/jsondiffpatch> (package)

## Sources

- CVE List: [CVE-2025-9910](https://www.cve.org/CVERecord?id=CVE-2025-9910), CVE Terms of Use, modified 2025-09-11
- GitHub Advisory Database: [GHSA-33vc-wfww-vjfv](https://github.com/advisories/GHSA-33vc-wfww-vjfv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-9910](https://nvd.nist.gov/vuln/detail/CVE-2025-9910), Public domain, modified 2026-10-19

---

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