CVE-2025-9910 jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin
An attacker can inject malicious scripts via HTML payloads in jsondiffpatch, potentially leading to code execution on websites using the built-in HTML formatter.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-9910?
CVE-2025-9910 is a low-severity cross-site scripting vulnerability in jsondiffpatch, published on 11 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2025-9910?
2 open source packages ship an affected version, including jsondiffpatch.
| Package | Affected | Fixed in |
|---|---|---|
jsondiffpatch npm | All versions | 0.7.2 |
jsondiffpatch npm | All versions | 0.7.2 |
How do I fix CVE-2025-9910?
Upgrade jsondiffpatch to 0.7.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-9910 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-9910 exists.
Sources
Also known as CLEANSTART-2026-OP77740, ECHO-a209-1045-04e4, GHSA-33vc-wfww-vjfv, MINI-4hjm-r75h-43w8, MINI-5vcf-2p87-rmx8, MINI-8x9p-573x-mjmf and 6 more.