Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit Markdown with crafted title frontmatter
-
DeliveryApplication renders with completeHTMLDocument enabled
-
ExploitUnescaped title breaks HTML context
-
ExecutionInjected script embedded in served page
-
PersistVictim browser loads rendered document
-
ImpactMalicious script executes in victim session
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 two concurrent conditions: first, the target application must explicitly enable Showdown's |
| Impact | The CVSS 4.0 score of 5.3 (Medium) is well-calibrated to the actual risk. The vector AV:N/AC:L/AT:N/PR:N/UI:P reflects a low-friction, network-accessible attack requiring no privileges - but passive victim interaction (UI:P) is necessary, meaning the attacker cannot trigger execution autonomously. Subsequent-system impact metrics SC:L/SI:L confirm scope change consistent with browser-context XSS, where the affected resource is the victim's session rather than the server itself. No EPSS score was provided; exploitation probability cannot be quantified from available signals. The vulnerability is absent from CISA KEV, and no POC has been confirmed in the provided data. The most significant risk-limiting factor is the non-default |
| Exploit ScenarioDerived | An attacker submits a Markdown document with a crafted frontmatter title - for example, |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 06, 2026
Cross-site scripting in Showdown (all versions ≤ 2.1.0) allows network-accessible injection of arbitrary HTML and JavaScript into rendered pages when the non-default completeHTMLDocument option is enabled. Unescaped < and > characters in Markdown frontmatter title metadata are written directly into the HTML <title> element, enabling title-context breakout and script execution in victim browsers. No public exploit has been identified at time of analysis and the vulnerability is not listed in CISA KEV, but the attack surface includes any web application that renders attacker-supplied Markdown with completeHTMLDocument enabled.
RemediationAI
No vendor-released patched version has been confirmed at time of analysis; upstream fix progress can be tracked at https://github.com/showdownjs/showdown/issues/1047 and the VulnCheck advisory at https://www.vulncheck.com/advisories/showdown-cross-site-scripting-via-unescaped-metadata-title-in-completehtmldocument. The most effective immediate control is to disable the completeHTMLDocument option, which eliminates the vulnerable code path entirely with no functional impact on fragment-rendering use cases. If full HTML document generation is architecturally required, apply HTML entity encoding to all frontmatter metadata values before passing content to Showdown, or post-process the rendered output with a sanitization library such as DOMPurify prior to serving it to users - note that DOMPurify adds a runtime dependency and must be kept current. Restricting Markdown input to trusted, non-user-controlled sources removes the attack surface entirely. Monitor the upstream repository and VulnCheck advisory for a patched release.
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 library that converts Markdown to HTML, commonly used in web applications, wikis, and documentation platforms. Its completeHTMLDocument option generates a full HTML document skeleton - including <html>, <head>, and <title> tags - rather than the default fragment output. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): frontmatter metadata values, specifically the title field, are interpolated into the <title> element without HTML entity encoding. Because < and > are left unescaped, an attacker-controlled title such as foo</title><script>alert(document.cookie)</script> terminates the <title> context and injects executable content. This is a stored or reflected XSS depending on how the host application handles Markdown input and rendering.
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
No privileges required to submit frontmatter content (PR:N); victim must load rendered page (UI:R); scope changes as victim browser session is affected (S:C), with limited confidentiality and integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
showdown contains a cross-site scripting vulnerability in metadata title handling that allows attackers to inject arbitrary HTML and JavaScript. When completeHTMLDocument option is enabled, unescaped less-than and greater-than characters in markdown frontmatter metadata are inserted directly into HTML title tags, enabling attackers to break out of the title context and execute malicious scripts in the rendered page.
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
Stored cross-site scripting in the showdown JavaScript Markdown-to-HTML library allows an unauthenticated attacker to in
EUVD-2026-41948
GHSA-cr32-g25g-vxjj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB