4.7
Medium
CVE-2025-9910 Versions of the package jsondiffpatch before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via…
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.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| jsondiffpatch 0.7 | earliest → < 0.7.2 | 0.7.2 |
| org.webjars.npm:jsondiffpatch | Versions not published | |
| org.webjars.bower:jsondiffpatch | Versions not published |