CVE-2025-9910
LOW 1.3CVSS 4.0jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin
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.
- Published
- 11 Sep 2025
- Last modified
- 19 Oct 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-33vc-wfww-vjfv
- Sources
- NVDJSONOSV GHSA-33vc-wfww-vjfvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | LOW 1.3 | 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/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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | jsondiffpatch | < 0.7.2 | 0.7.2 |
References
- https://benjamine.github.io/jsondiffpatch/index.html · WEB
- https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14 · WEB
- https://github.com/benjamine/jsondiffpatch/issues/383 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276 · WEB
- https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-9910 · ADVISORY
- https://github.com/benjamine/jsondiffpatch · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Sep 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Sep 2025)