CVE-2025-9910 jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin
LowCVSS 2.3
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| npm jsondiffpatch(npm) | < 0.7.2 | 0.7.2 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com patch
- benjamine.github.io
- security.snyk.io
- security.snyk.io
- security.snyk.io
- github.com
- github.com product