CVE-2026-59711
Deferred Deferred - Pending Action

XSS in Showdown Markdown Parser via Metadata Title

Vulnerability report for CVE-2026-59711, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-06

Last updated on: 2026-07-07

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-06
Last Modified
2026-07-07
Generated
2026-07-27
AI Q&A
2026-07-07
EPSS Evaluated
2026-07-25
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
showdown showdown to 2.1.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in showdown, where a cross-site scripting (XSS) flaw occurs in the handling of metadata titles. Specifically, when the completeHTMLDocument option is enabled, unescaped less-than and greater-than characters in markdown frontmatter metadata are directly inserted into HTML title tags. This allows attackers to inject arbitrary HTML and JavaScript, breaking out of the title context and executing malicious scripts on the rendered page.

Detection Guidance

This vulnerability can be detected by inspecting the usage of the showdown library in your system, specifically checking if the `completeHTMLDocument` option is enabled when rendering Markdown with metadata titles.

You can test for the vulnerability by crafting Markdown input with malicious metadata in the frontmatter, such as using angle brackets to break out of the title tag and inject scripts.

For example, input like the following can be used to test if the system is vulnerable:

  • --- title: </title><script>alert(document.cookie)</script> ---

If the rendered HTML page executes the script or includes unescaped angle brackets in the title tag, the vulnerability is present.

To detect this on your system, you can use commands or scripts to search for usage of showdown with the `completeHTMLDocument` option enabled, for example by grepping your codebase:

  • grep -r 'completeHTMLDocument' /path/to/your/project

Additionally, you can monitor network traffic or logs for suspicious HTML content or script injections in pages generated by showdown.

Impact Analysis

The vulnerability can lead to the execution of malicious scripts in users' browsers when they view pages rendered by showdown with the affected configuration. This can result in unauthorized actions, data theft, session hijacking, or other malicious activities performed by attackers exploiting the cross-site scripting flaw.

Compliance Impact

The CVE-2026-59711 vulnerability allows attackers to execute arbitrary scripts via cross-site scripting (XSS) in the Showdown library when rendering user-supplied Markdown into complete HTML documents. This can lead to unauthorized access to sensitive information or session data.

Such unauthorized data access or exposure through XSS attacks can impact compliance with data protection regulations like GDPR and HIPAA, which require safeguarding personal and sensitive information against unauthorized disclosure or manipulation.

Therefore, applications using vulnerable versions of Showdown without proper mitigation may risk non-compliance with these standards due to potential data breaches or privacy violations.

Mitigation Strategies

To mitigate this vulnerability immediately, update the showdown library to a version that includes the fix for CVE-2026-59711.

If updating is not immediately possible, disable the `completeHTMLDocument` option to prevent unescaped metadata titles from being inserted into the HTML title tag.

Alternatively, sanitize or escape metadata titles in the Markdown frontmatter before rendering to ensure angle brackets are properly handled.

Using the `safeMode` option or integrating a dedicated sanitizer like DOMPurify for untrusted Markdown input can also help reduce the risk of XSS.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59711. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart