CVE-2025-9910
mediumpriority · track · 0EPSS 0.003 · 23 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 0.6–4.7
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-33vc-wfww-vjfvjsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin2025-09-11ghsa · osvUS
### Vulnerability in jsondiffpatch Versions of `jsondiffpatch` prior to `0.7.2` are vulnerable to Cross-site Scripting (XSS) in the `HtmlFormatter` (`HtmlFormatter::nodeBegin`). When diffs are rendered to HTML using the built-in formatter, untrusted payloads can inject scripts and execute in the context of a consuming web page. **Affected versions:** >= 0, < 0.7.2 **Patched version:** 0.7.2 **Remediation** Upgrade to `jsondiffpatch` `0.7.2` or later. The fix hardens the HTML formatter to avoid script injection. **Workarounds** Avoid using the HTML formatter on untrusted diffs, or sanitize/escape the rendered output.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://benjamine.github.io/jsondiffpatch/index.htmlcnnvd
- https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14cnnvd
- https://github.com/benjamine/jsondiffpatch/issues/383cnnvd
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277cnnvd
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276cnnvd
- https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031cnnvd
- https://benjamine.github.io/jsondiffpatch/index.htmlenisa_euvd
- https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan