AploSec / Disclosures / CVE-2026-122234
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
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/jsondiffpatch-before-0.7.7-xss-via-array-move-destination-in-html-formatters
- Referencehttps://github.com/benjamine/jsondiffpatch/security/advisories/GHSA-jhmf-rq89-q58p
- Fix commithttps://github.com/benjamine/jsondiffpatch/commit/c6b2d97b34bc2356c816d8dd0f8b1c8af16bb6af
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-122234
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-122234
- 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