{"id":"CVE-2025-9910","published":"2025-09-11T05:00:02Z","modified":"2025-09-11T13:09:13Z","title":"Versions of the package jsondiffpatch before 0.7.2 are vulnerable to Cross-site Scripting (XSS) via…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00327,"percentile":0.26505,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276","tags":[]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277","tags":[]},{"url":"https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14","tags":[]},{"url":"https://github.com/benjamine/jsondiffpatch/issues/383","tags":[]},{"url":"https://benjamine.github.io/jsondiffpatch/index.html","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":5.3},{"name":"CVSS severity","points":3.29}]},"affectedVersions":[{"vendor":"n/a","product":"jsondiffpatch","versions":["< 0.7.2"]},{"vendor":"n/a","product":"org.webjars.npm:jsondiffpatch","versions":["all versions"]},{"vendor":"n/a","product":"org.webjars.bower:jsondiffpatch","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-11T13:08:49.982996Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsondiffpatch","vulnerableRanges":["<0.7.2"],"patched":["0.7.2"],"from":["GHSA-33vc-wfww-vjfv"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) weakness in the built-in HTML formatter of the jsondiffpatch npm package, specifically in its HtmlFormatter::nodeBegin function, affecting versions before 0.7.2. An attacker who can supply a crafted HTML payload that is used as the diff source and rendered through the HTML formatter can inject script that may lead to code execution in a private website, which requires the attacker to be able to submit input the application diffs, and the victim to view the rendered result (user interaction).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:44Z"},"euvd":{"id":"EUVD-2025-27629","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-9910","published":"2025-09-11","fixed":"0.7.2","kev":false},{"cve":"CVE-2026-8657","published":"2026-05-16","fixed":"0.7.6","kev":false,"link":{"from":"CVE-2025-9910","to":"CVE-2026-8657","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jsondiffpatch","fromFixed":"0.7.2","toFixed":"0.7.6","daysApart":247}]}}],"package":"npm:jsondiffpatch"}}