jsondiffpatch before 0.7.7 contains a cross-site scripting vulnerability that allows attackers to inject markup by
Source GCVE Database
Not known to be exploited · CVSS 2.3 Low : upgrade to 0.7.7 when convenient.
Data as of 4 Nov 2026, 22:39 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 2.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.7 |
- Patch
- Available – fixed in 0.7.7
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Upgrade jsondiffpatch to 0.7.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| benjaminejsondiffpatch | Affected
| Fixed in
|
npmjsondiffpatchpkg:npm/jsondiffpatchOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in jsondiffpatch version 0.7.7 and later. Users should upgrade to version 0.7.7 or newer to remediate this vulnerability. No vendor advisory content was provided, but the version-based fix is clearly stated. No additional mitigations are indicated.
Description
jsondiffpatch versions before 0.7.7 have a cross-site scripting (XSS) vulnerability. This flaw allows attackers to inject malicious markup by providing an unescaped array-move destination index in a delta. If an attacker controls the delta passed to the formatters.html.format() or formatters.annotated.format() functions, they can embed scripts that execute in the context of the application's origin when the output is rendered.
References
- github.com/benjamine/jsondiffpatch/security/advisories/GHSA-jhmf-rq89-q58p (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-122234 (opens in a new tab)
- github.com/benjamine/jsondiffpatch/commit/c6b2d97b34bc2356c816d8dd0f8b1c8af16bb6af (opens in a new tab)
- vulncheck.com/advisories/jsondiffpatch-before-0.7.7-xss-via-array-move-destination-in-html-formatters (opens in a new tab)