AploSec / Disclosures / CVE-2026-122234

Low 2.3Fix mergedFixed in 0.7.7CWE-79npm

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

CVE-2026-122234 · published 2026-11-04

In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). A fixed release is listed.

Summary

CVE-2026-122234 affects jsondiffpatch (npm) < 0.7.7: XSS via an unescaped array-move destination in the HTML formatters (CWE-79). Fixed in 0.7.7. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-11-04 by VulnCheck. Credit: Zachariah Mithani.

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.

Evidence

The maintainer accepted the patch submitted with the report and merged the fix.

Remediation

Upgrade jsondiffpatch to 0.7.7 or later. Releases in the affected range (< 0.7.7) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-11-04 CVE published
  • 2026-11-11 Public record last updated

References

Severity
Low 2.3CVSS 4.0, scored by VulnCheck in the CVE record
Package
jsondiffpatch
Ecosystem
npm
Affected
< 0.7.7
Fixed
0.7.7
Weakness
CWE-79
CNA
VulnCheck
Credit
Zachariah Mithanifinder