{"id":"CVE-2026-8656","details":"Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Cross-site Scripting (XSS) via the annotated formatter due to improper sanitization of JSON values and property names. If an application compares untrusted JSON/object data and renders annotated formatter output in the DOM, attacker-controlled HTML can be interpreted by the browser, resulting in XSS.","modified":"2026-07-08T08:13:53.032136421Z","published":"2026-05-16T05:00:04.462Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8656.json","unresolved_ranges":[{"extracted_events":[{"fixed":"0.7.6"}],"source":"AFFECTED_FIELD"},{"extracted_events":[{"fixed":"0.7.6"}],"source":"DESCRIPTION"}],"cna_assigner":"snyk","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://gist.github.com/yuki-matsuhashi/72ed072d919f3c52adba298faa6a7da5"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-JSONDIFFPATCH-16635946"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8656.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8656"},{"type":"FIX","url":"https://github.com/benjamine/jsondiffpatch/commit/232338b34c4653148ca2f44e897a765b72c8c98f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/benjamine/jsondiffpatch","events":[{"introduced":"0"},{"fixed":"232338b34c4653148ca2f44e897a765b72c8c98f"}],"database_specific":{"source":"REFERENCES"}}],"versions":["v0.6.0","v0.5.0","v0.3.11","v0.3.10","v0.3.9","v0.3.8","v0.3.7","v0.3.6","v0.1.42","v0.1.35","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.3","v0.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-8656.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P"}]}