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 is vulnerable to a cross‑site scripting flaw where unescaped < and > characters in markdown frontmatter metadata are inserted directly into an HTML title element when the completeHTMLDocument option is enabled. This allows an attacker to inject arbitrary HTML or JavaScript that executes in the context of the rendered page, potentially compromising the confidentiality and integrity of information displayed to users. 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 and renders Markdown with the completeHTMLDocument option enabled is potentially affected. The vulnerability is present in all library versions that contain the unescaped title handling logic; specific version ranges are not supplied, 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 likely a web application that accepts or renders user‑supplied Markdown; an attacker must supply crafted frontmatter containing malicious title content processed with completeHTMLDocument enabled to trigger the XSS.

Generated by OpenCVE AI on July 26, 2026 at 20:01 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 26, 2026 at 20:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

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

No data.

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-59711 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T20:15:04Z

Weaknesses
  • CWE-79

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