CVE-2025-9910
September 11, 2025
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 Packages
jsondiffpatch (CDN_JS):
Affected version(s) >=0.1.10 <0.7.2Fix Suggestion:
Update to version 0.7.2jsondiffpatch (CDN_JS):
Affected version(s) >=0.1.10 <0.7.2Fix Suggestion:
Update to version 0.7.2jsondiffpatch (NPM):
Affected version(s) >=0.0.1 <0.7.2Fix Suggestion:
Update to version 0.7.2jsondiffpatch (NPM):
Affected version(s) >=0.0.1 <0.7.2Fix Suggestion:
Update to version 0.7.2Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
1.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
Exploit Maturity
POC
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.03