GHSA-cr32-g25g-vxjj
Showdown contains a cross-site scripting (XSS) vulnerability in the handling of metadata titles when the completeHTMLDocument option is enabled. Unescaped less-than and greater-than characters in markdown frontmatter metadata are inserted directly into HTML title tags, allowing attackers to inject arbitrary HTML and JavaScript. This enables attackers to break out of the title context and execute malicious scripts in the rendered page.
AI Analysis
Technical Summary
The vulnerability in showdown arises from improper escaping of less-than and greater-than characters in markdown frontmatter metadata titles when the completeHTMLDocument option is enabled. This results in unescaped HTML being inserted into the title tags of the generated HTML document, leading to a cross-site scripting (XSS) vulnerability (CWE-79). An attacker can exploit this by injecting malicious HTML or JavaScript code that executes in the context of the rendered page.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the affected web page, potentially leading to session hijacking, defacement, or other malicious actions depending on the context in which the showdown library is used. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid enabling the completeHTMLDocument option with untrusted markdown content or sanitize metadata titles to prevent injection of unescaped HTML characters.
GHSA-cr32-g25g-vxjj
Description
Showdown contains a cross-site scripting (XSS) vulnerability in the handling of metadata titles when the completeHTMLDocument option is enabled. Unescaped less-than and greater-than characters in markdown frontmatter metadata are inserted directly into HTML title tags, allowing attackers to inject arbitrary HTML and JavaScript. This enables attackers to break out of the title context and execute malicious scripts in the rendered page.
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
The vulnerability in showdown arises from improper escaping of less-than and greater-than characters in markdown frontmatter metadata titles when the completeHTMLDocument option is enabled. This results in unescaped HTML being inserted into the title tags of the generated HTML document, leading to a cross-site scripting (XSS) vulnerability (CWE-79). An attacker can exploit this by injecting malicious HTML or JavaScript code that executes in the context of the rendered page.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the affected web page, potentially leading to session hijacking, defacement, or other malicious actions depending on the context in which the showdown library is used. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid enabling the completeHTMLDocument option with untrusted markdown content or sanitize metadata titles to prevent injection of unescaped HTML characters.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cr32-g25g-vxjj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59711"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a4c33f227e9c797195ec95b
Added to database: 07/06/2026, 23:02:10 UTC
Last enriched: 07/06/2026, 23:06:51 UTC
Last updated: 07/07/2026, 00:11:16 UTC
Views: 2
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.