CVE-2026-8656 Cross-site scripting in jsondiffpatch

Medium 5.1 Published Updated

An attacker can execute arbitrary scripts in a victim's browser by exploiting improper sanitization in the jsondiffpatch library's annotated formatter.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-8656?

CVE-2026-8656 is a medium-severity cross-site scripting vulnerability in jsondiffpatch, published on 16 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2026-8656?

How do I fix CVE-2026-8656?

No fix has been published for CVE-2026-8656 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-8656 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-8656 exists.

Sources

Also known as GHSA-2f3m-j83v-344c.

Is CVE-2026-8656 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free