CVE Catalog

CVE-2026-122234

MediumCVSS 4.7
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

Arbitrary JavaScript execution in the victim application's context may lead to session or data theft. The risk affects applications rendering untrusted jsondiffpatch deltas.

Recommendation

Update jsondiffpatch to version 0.7.7 or later. Do not render untrusted deltas without proper output escaping.

Other vulnerabilities in jsondiffpatch

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS