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.
References6
- benjamine.github.io/jsondiffpatch/index.html
- github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9…
- github.com/benjamine/jsondiffpatch/issues/383
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277
- security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276
- security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031
Metrics
- CVSS 3.1
-
4.7
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 4.0
-
1.3
LOW
Score source: CNA
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 25 · as of 8 November 2026
- CWE
- CWE-79
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.