Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-8656 EUVD-2026-30671GHSA-2f3m-j83v-344c

Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Cross-site Scripting (XSS) via the annotated formatter due to improper…

Published May 16, 2026 · Updated May 18, 2026 · Assigned by snyk

Description

Versions of the package jsondiffpatch before 0.7.6 are vulnerable to Cross-site Scripting (XSS) via the annotated formatter due to improper sanitization of JSON values and property names. If an application compares untrusted JSON/object data and renders annotated formatter output in the DOM, attacker-controlled HTML can be interpreted by the browser, resulting in XSS.

Affected products

VendorProductAffectedFixed
— jsondiffpatch < 0.7.6 0.7.6

References