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.
Published: 2026-07-06
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Wed, 08 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 07 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 06 Jul 2026 21:15:00 +0000

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'}


Subscriptions

Showdownjs Showdown
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-07T14:06:55.895Z

Reserved: 2026-07-06T15:31:46.188Z

Link: CVE-2026-59711

cve-icon Vulnrichment

Updated: 2026-07-07T14:06:36.349Z

cve-icon NVD

Status : Deferred

Published: 2026-07-06T21:16:58.660

Modified: 2026-07-07T15:16:49.570

Link: CVE-2026-59711

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-06T21:00:38Z

Links: CVE-2026-59711 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T14:30:04Z

Weaknesses
  • CWE-79

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