CVE-2026-59710

showdown - Stored XSS via Unescaped Table Header ID Attribute Injection

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

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 18:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-22g5-r2x5-97cx showdown allows stored cross-site scripting through table header ID injection
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 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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 7, 2026, 1:47 PM
Reserved
Jul 6, 2026, 3:31 PM
Status
Deferred
Published
Jul 6, 2026, 10:16 PM
Modified
Jul 7, 2026, 1:57 PM
Severity
Moderate
Public date
Jul 6, 2026, 9:15 PM