All vulnerabilities

npm

CVE-2026-122234

jsondiffpatch before 0.7.7 XSS via Array-Move Destination in HTML Formatters

Severity
Low 2.3
Published
4 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.7.7
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
CVSS vector
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
jsondiffpatchnpm · osv:npm:jsondiffpatch
  • Every version before 0.7.7

About jsondiffpatch

Weekly downloads (npm)
3,494,251npm, 24 Nov 2026

This is the only vulnerability in jsondiffpatch in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-122234