{"id":"CVE-2025-9910","state":"PUBLISHED","title":"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 pay","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.","publishedAt":"2025-09-11T05:00:02.071Z","updatedAt":"2025-09-11T13:09:13.093Z","severity":{"score":2.3,"label":"Low","version":"4.0","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","source":"snyk"},"assigner":"snyk","products":["n/a jsondiffpatch","n/a org.webjars.npm:jsondiffpatch","n/a org.webjars.bower:jsondiffpatch"],"affected":[{"vendor":"n/a","product":"jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"0.7.2","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.bower:jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:10:13.529Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/9xxx/CVE-2025-9910.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-9910","state":"PUBLISHED","datePublished":"2025-09-11T05:00:02.071Z","dateUpdated":"2025-09-11T13:09:13.093Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2025-09-03T08:48:06.729Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"0.7.2","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.npm:jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]},{"vendor":"n/a","product":"org.webjars.bower:jsondiffpatch","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"semver"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-10369031"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-12549276"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-12549277"},{"url":"https://github.com/benjamine/jsondiffpatch/commit/0e374b5dd8d7879b329a9fc18affbd46ad50dd14"},{"url":"https://github.com/benjamine/jsondiffpatch/issues/383"},{"url":"https://benjamine.github.io/jsondiffpatch/index.html"}],"metrics":[{"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","exploitCodeMaturity":"PROOF_OF_CONCEPT","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P"},"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","exploitMaturity":"PROOF_OF_CONCEPT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":2.3,"baseSeverity":"LOW","vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"Cross-site Scripting (XSS)","lang":"en"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2025-09-11T05:00:02.071Z"},"credits":[{"value":"zendive","lang":"en"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-09-11T13:08:49.982996Z","id":"CVE-2025-9910","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-09-11T13:09:13.093Z"}}]}}}