The showdown library contains a stored cross-site scripting (XSS) vulnerability in the parseHeaders function within src/subParsers/makehtml/tables.js. (CVE-2026-59710)
The showdown library contains a stored cross-site scripting (XSS) vulnerability in the parseHeaders function within src/subParsers/makehtml/tables.js. This flaw arises because table header ID attributes are not properly escaped, allowing attackers to inject arbitrary HTML and script-executing SVG elements via double-quote characters in markdown table headers. When untrusted markdown is rendered using the default GitHub flavor configuration, this results in stored XSS.
AI Analysis
Technical Summary
CVE-2026-59710 identifies a stored XSS vulnerability in showdown's parseHeaders function. The vulnerability occurs due to improper escaping of table header ID attributes, enabling injection of malicious HTML and SVG script elements through specially crafted markdown table headers. This can lead to stored XSS when untrusted markdown content is rendered with the default GitHub flavor. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). No patch or remediation details are currently provided, and there are no known exploits in the wild.
Potential Impact
Successful exploitation allows an attacker to inject and execute arbitrary scripts in the context of users viewing the rendered markdown, potentially leading to session hijacking, defacement, or other malicious actions typical of stored XSS vulnerabilities. The vulnerability affects applications using showdown to render untrusted markdown with the default GitHub flavor configuration.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid rendering untrusted markdown with showdown using the default GitHub flavor configuration or apply input sanitization to markdown table headers to prevent injection of double-quote characters and script elements.
The showdown library contains a stored cross-site scripting (XSS) vulnerability in the parseHeaders function within src/subParsers/makehtml/tables.js. (CVE-2026-59710)
Description
The showdown library contains a stored cross-site scripting (XSS) vulnerability in the parseHeaders function within src/subParsers/makehtml/tables.js. This flaw arises because table header ID attributes are not properly escaped, allowing attackers to inject arbitrary HTML and script-executing SVG elements via double-quote characters in markdown table headers. When untrusted markdown is rendered using the default GitHub flavor configuration, this results in stored XSS.
CVSS v4.0
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
CVE-2026-59710 identifies a stored XSS vulnerability in showdown's parseHeaders function. The vulnerability occurs due to improper escaping of table header ID attributes, enabling injection of malicious HTML and SVG script elements through specially crafted markdown table headers. This can lead to stored XSS when untrusted markdown content is rendered with the default GitHub flavor. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). No patch or remediation details are currently provided, and there are no known exploits in the wild.
Potential Impact
Successful exploitation allows an attacker to inject and execute arbitrary scripts in the context of users viewing the rendered markdown, potentially leading to session hijacking, defacement, or other malicious actions typical of stored XSS vulnerabilities. The vulnerability affects applications using showdown to render untrusted markdown with the default GitHub flavor configuration.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid rendering untrusted markdown with showdown using the default GitHub flavor configuration or apply input sanitization to markdown table headers to prevent injection of double-quote characters and script elements.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-22g5-r2x5-97cx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59710"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a4cf100c9d9e3dbe31d44ac
Added to database: 07/07/2026, 12:28:48 UTC
Last enriched: 07/07/2026, 12:32:44 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 54
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.