CVE-2026-122234: jsondiffpatch before 0.7.7 XSS via Array-Move Destination in HTML Formatters
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.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
jsondiffpatchto a version that resolves this vulnerability.Fixed in 0.7.7