Skip to main content

showdown EUVDEUVD-2026-41954

| CVE-2026-59710 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-06 VulnCheck GHSA-22g5-r2x5-97cx
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft Markdown table with double-quote injection in header
  2. Delivery
    Submit to showdown-rendered application
  3. Exploit
    parseHeaders writes unescaped input into id attribute
  4. Execution
    Store rendered HTML with injected SVG or event handler
  5. Persist
    Victim loads page containing stored payload
  6. Impact
    Injected script executes in victim browser context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the target application uses showdown configured with github flavor (the library default), which activates table header ID attribute generation in the parseHeaders function; (2) the application accepts Markdown input from a potentially malicious user - anonymous or authenticated - and stores or relays the rendered HTML output to other users (stored XSS pattern); and (3) at least one victim user passively views a page containing the rendered Markdown (CVSS UI:P). Exploitation is limited by the passive user interaction requirement (the victim must load a page containing the injected content), and is entirely absent in deployments where Markdown is rendered only for the same user who authored it, or where a post-render HTML sanitizer strips injected event handlers and SVG nodes before DOM insertion. Non-default showdown configurations that disable table support or github flavor would also prevent exploitation.

Impact

The CVSS 4.0 base score of 5.3 (Medium) reflects network reachability (AV:N), no authentication requirement on the attacker side (PR:N), low complexity (AC:L), and passive user interaction (UI:P), with low-level confidentiality and integrity impact to both the vulnerable system and downstream users (VC:L/VI:L/SC:L/SI:L). Real-world priority depends critically on deployment context: in multi-user applications where one user's Markdown is rendered and displayed to other users - wikis, comment systems, documentation platforms, issue trackers - this is a genuine stored XSS risk that can lead to session hijacking, credential theft, or UI redirection. In single-user or same-origin-only deployments the practical impact is negligible. No KEV listing and no EPSS data were provided, so mass exploitation cannot be confirmed; the absence of EPSS data means probability of exploitation in the next 30 days is unknown. The wildcard CPE version range (all versions) indicates the bug predates the fix commit, though the exact introduction version is not stated. CVSS UI:P is a meaningful limiter - exploitation requires a victim to view a rendered page, ruling out fully automated mass exploitation.

Exploit ScenarioDerived

An attacker posts a Markdown comment to a wiki or issue tracker powered by showdown, embedding a table header such as '| foo" onmouseover="alert(1)" x="' which breaks out of the generated id attribute. When the application stores and re-renders this Markdown for other users, the injected SVG or event-handler payload executes in each victim's browser, enabling the attacker to steal session cookies or perform authenticated actions. No public proof-of-concept code has been confirmed in the available data, but the attack requires only basic knowledge of HTML attribute injection, making independent rediscovery straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Stored cross-site scripting in the showdown JavaScript Markdown-to-HTML library allows an unauthenticated attacker to inject arbitrary HTML and script-executing SVG elements by placing double-quote characters inside Markdown table headers. The unescaped content is written directly into HTML id attributes by the parseHeaders function in src/subParsers/makehtml/tables.js, and the payload is stored and later executed in every victim's browser that views the rendered output. No active exploitation has been confirmed (not in CISA KEV) and no EPSS data was supplied, but the default github flavor configuration means most showdown deployments are affected without any non-default setup required.

RemediationAI

Upstream fix available via commit e5cab1e9a5dcea2bb3cbf888863fa7e65ab37edf (https://github.com/showdownjs/showdown/commit/e5cab1e9a5dcea2bb3cbf888863fa7e65ab37edf); a released patched npm version is not independently confirmed from the available data - monitor the showdown npm package and GitHub releases for a tagged version that includes this commit, then upgrade as soon as one is available. As an immediate compensating control, pipe showdown's HTML output through a dedicated HTML sanitizer such as DOMPurify before inserting it into the DOM; this eliminates injected event handlers and script-bearing SVG nodes at the rendering layer and is effective regardless of showdown version, though it adds a runtime dependency and must be applied consistently across every rendering path. Alternatively, if table anchor IDs are not required, investigate whether the github flavor table-header-ID feature can be disabled in the showdown options object to prevent the vulnerable code path from executing; this avoids the XSS without a full upgrade but trades anchor-linking functionality. Applications that only render Markdown written by the same authenticated user who views it face minimal real-world risk and can deprioritize patching relative to multi-user platforms.

Affected VersionsENISA

Showdown 0 ≤2.1.0

Affected Packages

npm showdown no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

showdown (CPE: cpe:2.3:a:showdown:showdown:*:*:*:*:*:*:*:*) is a JavaScript Markdown-to-HTML converter used in both browser and Node.js environments. When the github flavor option is active - which is the default - the parseHeaders function in src/subParsers/makehtml/tables.js generates an id attribute for each table header cell to support anchor-linked headings. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the raw header string is interpolated into the id="..." attribute without HTML-encoding double-quote characters or other special markup characters. This allows an attacker to terminate the attribute value, close the tag, and inject additional HTML nodes - including inline SVG elements carrying event handlers such as onload - directly into the document tree. Because the injected markup is generated server-side or at render time and then persisted or served to other users, the attack class is stored (persistent) XSS rather than reflected.

Know when Showdown gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Network-delivered stored XSS, no privileges needed from attacker, passive victim view required, scope change to victim browser with low C and I impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Red Hat 6.1 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

showdown contains a stored cross-site scripting vulnerability in the parseHeaders function of src/subParsers/makehtml/tables.js that fails to properly escape table header ID attributes. Attackers can inject arbitrary HTML and script-executing SVG elements through double-quote characters in markdown table headers, achieving stored XSS when untrusted markdown is rendered with the default github flavor configuration.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 967 npm packages depend on showdown (483 direct, 495 indirect)

Ecosystem-wide dependent count for version 2.1.0.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular JavaScript Markdown-to-HTML npm library, broad ecosystem use
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy