Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft Markdown table with double-quote injection in header
-
DeliverySubmit to showdown-rendered application
-
ExploitparseHeaders writes unescaped input into id attribute
-
ExecutionStore rendered HTML with injected SVG or event handler
-
PersistVictim loads page containing stored payload
-
ImpactInjected 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Network-delivered stored XSS, no privileges needed from attacker, passive victim view required, scope change to victim browser with low C and I impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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- 967 npm packages depend on showdown (483 direct, 495 indirect)
Ecosystem-wide dependent count for version 2.1.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An issue in the anchors subparser of Showdownjs versions <= 2.1.0 could allow a remote attacker to cause denial of servi
Cross-site scripting in Showdown (all versions ≤ 2.1.0) allows network-accessible injection of arbitrary HTML and JavaSc
EUVD-2026-41954
GHSA-22g5-r2x5-97cx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB