Description
showdown contains a stored cross-site scripting vulnerability in the parseHeaders function of src/subParsers/makehtml/tables.js that fails to properly escape table header ID attributes. Attackers can inject arbitrary HTML and script-executing SVG elements through double-quote characters in markdown table headers, achieving stored XSS when untrusted markdown is rendered with the default github flavor configuration.
Published: 2026-07-06
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a stored cross‑site scripting flaw inside the parseHeaders function used for rendering markdown tables. It allows an attacker to embed arbitrary HTML and script‑enabled SVG elements by inserting double‑quote characters into rendered with Showdown’s default GitHub flavor configuration, the injected content is executed in the browser of any user who views the rendered output. The flaw originates from failure to escape the ID attribute, which is a classic input validation weakness classified as CWE‑79.

Affected Systems

This issue impacts the Showdown.js markdown converter for both Node.js and browser environments. All releases that expose the parseHeaders function in src/subParsers/makehtml/tables.js are affected; the description does not tie the flaw to a specific version number, so any deployment that parses user‑generated markdown tables and renders them with risk. The affected product is Showdown.js, library version unspecified.

Risk and Exploitability

The CVSS base score of 5.3 indicates moderate severity. The EPSS probability is < 1 % and the vulnerability is not listed in CISA’s KEV catalog, suggesting a low likelihood of widespread exploitation. Nevertheless, stored XSS can be triggered by any visitor to trusted markdown with the default settings, so the potential impact remains significant for projects that use Showdown without additional sanitization.

Generated by OpenCVE AI on July 26, 2026 at 19:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Showdown.js release that includes the parseHeaders fix (e.g., commit e5cab1e9).
  • If an upgrade is not possible, sanitize the HTML output with a library such as DOMPurify before serving it to users.
  • Configure the Showdown renderer to disable raw HTML or otherwise restrict the GitHub flavor options so that injected tags cannot be executed.

Generated by OpenCVE AI on July 26, 2026 at 19:58 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:45:00 +0000

Type Values Removed Values Added
Description showdown contains a stored cross-site scripting vulnerability in the parseHeaders function of src/subParsers/makehtml/tables.js that fails to properly escape table header ID attributes. Attackers can inject arbitrary HTML and script-executing SVG elements through double-quote characters in markdown table headers, achieving stored XSS when untrusted markdown is rendered with the default github flavor configuration.
Title showdown - Stored XSS via Unescaped Table Header ID Attribute Injection
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-07T13:47:54.393Z

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

Link: CVE-2026-59710

cve-icon Vulnrichment

Updated: 2026-07-07T12:44:43.850Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-06T21:15:45Z

Links: CVE-2026-59710 - Bugzilla

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-79

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