CVE-2026-59711

showdown - Cross-Site Scripting via Unescaped Metadata Title in completeHTMLDocument

Published Jul 6, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Showdown contains a cross‑site scripting flaw where unescaped < and > characters in markdown frontmatter metadata are inserted directly into the HTML title tag when the completeHTMLDocument option is enabled. This allows an attacker to break out of the title context and inject arbitrary HTML or JavaScript that is executed in the rendered page. The weakness is a classic injection issue classified as CWE‑79 and is restricted to client‑side code, meaning it is triggered by rendering rather than by server‑side logic.

Affected Systems

Any Node.js application that incorporates the Showdown library (showdownjs/showdown) and renders Markdown with the completeHTMLDocument option enabled may be affected. All versions of Showdown that implement the unescaped title handling logic are vulnerable; the CVE payload does not provide specific version ranges, so affected instances must be confirmed by inspecting the library code or its commit history.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score of less than 1% suggests a low likelihood of exploitation in the near term, and the vulnerability is not listed in CISA's KEV catalog. The attack vector is client‑side: an attacker can supply crafted markdown frontmatter containing malicious title content that is rendered with completeHTMLDocument enabled in a web browser or other client rendering the Markdown. Successful exploitation results in arbitrary script execution in the context of the page.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Showdown library to the latest patched release that removes the unescaped title issue
  • If an update cannot be applied immediately, disable the completeHTMLDocument option or ensure that any '<' and '>' characters in frontmatter title values are escaped before rendering
  • Implement a strict Content Security Policy that blocks inline scripts and mitigates the impact of any rendered malicious content

Generated by OpenCVE AI on July 31, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cr32-g25g-vxjj showdown metadata title handling allows cross-site scripting
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title showdown - Cross-Site Scripting via Unescaped Metadata Title in completeHTMLDocument
First Time appeared Showdownjs
Showdownjs showdown
Weaknesses CWE-79
CPEs cpe:2.3:a:showdownjs:showdown:*:*:*:*:*:node.js:*:*
Vendors & Products Showdownjs
Showdownjs showdown
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 7, 2026, 2:06 PM
Reserved
Jul 6, 2026, 3:31 PM
Status
Deferred
Published
Jul 6, 2026, 9:16 PM
Modified
Oct 25, 2026, 8:10 PM
Severity
Moderate
Public date
Jul 6, 2026, 9:00 PM