CVE-2026-8656: Cross-site Scripting (XSS) in jsondiffpatch
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.
AI Analysis
Technical Summary
CVE-2026-8656 describes a Cross-site Scripting (XSS) vulnerability in the jsondiffpatch package prior to version 0.7.6. The issue arises from the annotated formatter's failure to properly sanitize JSON values and property names. When applications compare untrusted JSON or object data and render the annotated formatter output directly into the DOM, attacker-controlled HTML can be interpreted by the browser, leading to XSS. The vulnerability is classified under CWE-79 and has a CVSS 4.0 score of 5.1, indicating medium severity. No patch or official remediation guidance is currently available.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary HTML or script code in the context of the victim's browser when untrusted JSON data is rendered using the vulnerable annotated formatter. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, exploitation requires the application to render untrusted JSON data with the annotated formatter in a way that the browser interprets attacker-controlled HTML.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid rendering untrusted JSON data with the annotated formatter in the DOM or implement strict sanitization and output encoding of JSON values and property names before rendering. Monitor vendor channels for updates regarding an official fix.
CVE-2026-8656: Cross-site Scripting (XSS) in jsondiffpatch
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.
CVSS v4.0
Score 5.1medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-8656 describes a Cross-site Scripting (XSS) vulnerability in the jsondiffpatch package prior to version 0.7.6. The issue arises from the annotated formatter's failure to properly sanitize JSON values and property names. When applications compare untrusted JSON or object data and render the annotated formatter output directly into the DOM, attacker-controlled HTML can be interpreted by the browser, leading to XSS. The vulnerability is classified under CWE-79 and has a CVSS 4.0 score of 5.1, indicating medium severity. No patch or official remediation guidance is currently available.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary HTML or script code in the context of the victim's browser when untrusted JSON data is rendered using the vulnerable annotated formatter. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, exploitation requires the application to render untrusted JSON data with the annotated formatter in a way that the browser interprets attacker-controlled HTML.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid rendering untrusted JSON data with the annotated formatter in the DOM or implement strict sanitization and output encoding of JSON values and property names before rendering. Monitor vendor channels for updates regarding an official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- snyk
- Date Reserved
- 2026-05-15T06:27:53.788Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a07ff1cec166c07b05e5fd2
Added to database: 5/16/2026, 5:22:36 AM
Last enriched: 5/23/2026, 6:35:07 AM
Last updated: 6/17/2026, 5:31:44 PM
Views: 88
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.