Vulnerability · Published Nov 4, 2026 · Assigned by VulnCheck
CVE-2026-122234jsondiffpatch before 0.7.7 XSS via Array-Move Destination in HTML Formatters
Medium 4.7
In plain English
A medium-severity cross-site scripting in jsondiffpatch from benjamine. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities).
Official description
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| benjamine | jsondiffpatch | 0 – before 0.7.7 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N