showdown allows stored cross-site scripting through table header ID injection (CVE-2026-59710)
Showdown contains a stored cross-site scripting (XSS) vulnerability in its table header ID parsing function. The vulnerability arises because the parseHeaders function in src/subParsers/makehtml/tables.js does not properly escape double-quote characters in markdown table headers. This allows attackers to inject arbitrary HTML and script-executing SVG elements, leading to stored XSS when untrusted markdown is rendered using the default GitHub flavor configuration. The vulnerability affects all versions up to and including 2.1.0. The CVSS score is 6.1, indicating a medium severity issue.
AI Analysis
Technical Summary
The stored cross-site scripting vulnerability in showdown occurs in the parseHeaders function responsible for processing table header ID attributes. Due to improper escaping of double-quote characters, an attacker can inject malicious HTML and SVG elements that execute scripts when rendered. This vulnerability is triggered when untrusted markdown content is processed with the default GitHub flavor configuration. The flaw is identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). It affects all versions up to and including 2.1.0. There are no known exploits in the wild and no patch or official fix has been documented in the provided data.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the victim's browser when viewing rendered markdown content. This can lead to information disclosure and limited integrity impact. There is no direct availability impact. The vulnerability is remotely exploitable without privileges but requires user interaction (rendering of malicious markdown).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should avoid rendering untrusted markdown content with the default GitHub flavor configuration in showdown until a fix is available. Monitoring vendor channels for updates is recommended.
showdown allows stored cross-site scripting through table header ID injection (CVE-2026-59710)
Description
Showdown contains a stored cross-site scripting (XSS) vulnerability in its table header ID parsing function. The vulnerability arises because the parseHeaders function in src/subParsers/makehtml/tables.js does not properly escape double-quote characters in markdown table headers. This allows attackers to inject arbitrary HTML and script-executing SVG elements, leading to stored XSS when untrusted markdown is rendered using the default GitHub flavor configuration. The vulnerability affects all versions up to and including 2.1.0. The CVSS score is 6.1, indicating a medium severity issue.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The stored cross-site scripting vulnerability in showdown occurs in the parseHeaders function responsible for processing table header ID attributes. Due to improper escaping of double-quote characters, an attacker can inject malicious HTML and SVG elements that execute scripts when rendered. This vulnerability is triggered when untrusted markdown content is processed with the default GitHub flavor configuration. The flaw is identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). It affects all versions up to and including 2.1.0. There are no known exploits in the wild and no patch or official fix has been documented in the provided data.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the victim's browser when viewing rendered markdown content. This can lead to information disclosure and limited integrity impact. There is no direct availability impact. The vulnerability is remotely exploitable without privileges but requires user interaction (rendering of malicious markdown).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should avoid rendering untrusted markdown content with the default GitHub flavor configuration in showdown until a fix is available. Monitoring vendor channels for updates is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-22g5-r2x5-97cx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59710"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a4cf100c9d9e3dbe31d44ac
Added to database: 07/07/2026, 12:28:48 UTC
Last enriched: 08/08/2026, 16:46:23 UTC
Last updated: 09/14/2026, 22:52:52 UTC
Views: 110
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.