Cross-site scripting in jsondiffpatch
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | jsondiffpatch | before 0.7.2 | 0.7.2 | Patch available | CNA |
| — | org.webjars.npm:jsondiffpatch | all versions | — | No fix listed | CNA |
| — | org.webjars.bower:jsondiffpatch | all versions | — | No fix listed | CNA |
| — | jsondiffpatch (npm) | before 0.7.2 | 0.7.2 | Patch available | GHSA-33vc-wfww-vjfv |
- jsondiffpatch Vendor— Affected before 0.7.2 Fixed in 0.7.2 Patch available CNA
- org.webjars.npm:jsondiffpatch Vendor— Affected all versions Fixed in — No fix listed CNA
- org.webjars.bower:jsondiffpatch Vendor— Affected all versions Fixed in — No fix listed CNA
- jsondiffpatch (npm) Vendor— Affected before 0.7.2 Fixed in 0.7.2 Patch available GHSA-33vc-wfww-vjfv
Remediation
- Fix · CNA jsondiffpatch Fixed in 0.7.2
- Fix · GHSA-33vc-wfww-vjfv jsondiffpatch (npm) Fixed in 0.7.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-9910
- 2026-10-03 Alias added: GHSA-33vc-wfww-vjfv
References
Sources
- CVE-2025-9910 · CVE Program
- CVE-2025-9910 · NVD
- FIRST EPSS
- GHSA-33vc-wfww-vjfv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences