Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 91%

CVE-2026-8656: Cross-site Scripting (XSS) in jsondiffpatch

0
Medium
VulnerabilityCVE-2026-8656cvecve-2026-8656
Published: Sat May 16 2026 (05/16/2026, 05:00:04 UTC)
Source: CVE Database V5
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/23/2026, 06:35:07 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses