Advisory

GHSA-22g5-r2x5-97cx

Also known as: CVE-2026-59710

Summary

showdown allows stored cross-site scripting through table header ID injection

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-07 00:30 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

showdown

npm · All systems

Affected

  • introduced 0, last affected 2.1.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences