Description
Showdown through 2.1.0 contains a cross-site scripting vulnerability in the makehtml link and image subparsers, which fail to escape double quotes in destination URLs placed into href and src attributes. Attackers can craft markdown links or images containing a double quote followed by onerror or onmouseover handlers to execute script when victims view rendered HTML.
Published: 2026-10-02
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Cross‑site scripting via unescaped quotes in href and src attributes
Action: Apply patch
AI Analysis

Impact

The vulnerability is a cross‑site scripting flaw in the showdown library’s markdown to HTML conversion process. The link and image subparsers do not escape double quotes contained in destination URLs, allowing an attacker to inject JavaScript by appending an event handler such as onerror or onmouseover after the quote. When a victim views the rendered HTML, the script runs in the victim’s browser, enabling credential theft, session hijacking, or drive‑by malware installation.

Affected Systems

Any deployment that incorporates showdownjs:showdown version 2.1.0 or earlier and renders user‑supplied markdown without additional sanitization is impacted. This includes web applications, content management systems, or any front‑end libraries that import this version as a dependency.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. Exploitability is reasonably high because the flaw is triggered by crafted input; no special privilege or system access is required. The EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog. Attackers can deliver the malicious markdown through any channel that allows user input to reach the rendering engine. Given the widespread use of showdown in web projects, the potential for exploitation is significant if no mitigations are applied.

Generated by OpenCVE AI on October 3, 2026 at 00:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update showdown to the latest release (>=2.1.1) which contains the XSS fix
  • Configure the rendering options to escape URLs or disable automatic link/image parsing so that injected attributes cannot be executed
  • Apply input validation to ensure URLs do not contain unescaped quotes before they are processed by the library

Generated by OpenCVE AI on October 3, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
Description Showdown through 2.1.0 contains a cross-site scripting vulnerability in the makehtml link and image subparsers, which fail to escape double quotes in destination URLs placed into href and src attributes. Attackers can craft markdown links or images containing a double quote followed by onerror or onmouseover handlers to execute script when victims view rendered HTML.
Title Showdown through 2.1.0 XSS via unescaped quote in href and src attributes
First Time appeared Showdownjs
Showdownjs showdown
Weaknesses CWE-79
CPEs cpe:2.3:a:showdownjs:showdown:*:*:*:*:*:*:*:*
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-10-02T23:28:47.414Z

Reserved: 2026-10-02T00:55:58.388Z

Link: CVE-2026-104477

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-03T00:16:35.920

Modified: 2026-10-03T00:16:35.920

Link: CVE-2026-104477

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-03T01:00:14Z

Weaknesses
  • CWE-79

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