{"id":"CVE-2026-122234","summary":"jsondiffpatch before 0.7.7 XSS via Array-Move Destination in HTML Formatters","details":"jsondiffpatch before 0.7.7 contains a cross-site scripting vulnerability that allows attackers to inject markup by supplying an unescaped array-move destination index in a delta. Attackers who control a delta passed to formatters.html.format() or formatters.annotated.format() can embed script that executes in the application's origin when output is rendered.","aliases":["GHSA-jhmf-rq89-q58p"],"modified":"2026-11-14T02:30:25.162864200Z","published":"2026-11-04T21:06:41.734Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122234.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"0.7.7"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]},{"extracted_events":[{"range":[{"fixed":"0.7.7"}],"source":"DESCRIPTION"}]}],"cna_assigner":"VulnCheck","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122234.json"},{"type":"ADVISORY","url":"https://github.com/benjamine/jsondiffpatch/security/advisories/GHSA-jhmf-rq89-q58p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122234"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/jsondiffpatch-before-0.7.7-xss-via-array-move-destination-in-html-formatters"},{"type":"FIX","url":"https://github.com/benjamine/jsondiffpatch/commit/c6b2d97b34bc2356c816d8dd0f8b1c8af16bb6af"},{"type":"PACKAGE","url":"https://github.com/benjamine/jsondiffpatch"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/benjamine/jsondiffpatch","events":[{"introduced":"0"},{"fixed":"c6b2d97b34bc2356c816d8dd0f8b1c8af16bb6af"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_COMMIT","range":[{"fixed":"c6b2d97b34bc2356c816d8dd0f8b1c8af16bb6af"}]}]}}],"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-122234.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}