CVE-2026-104477

Showdown through 2.1.0 XSS via unescaped quote in href and src attributes

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

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 5, 2026, 8:30 PM
Reserved
Oct 2, 2026, 12:55 AM
Status
Awaiting Analysis
Published
Oct 3, 2026, 12:16 AM
Modified
Oct 6, 2026, 4:00 PM
Severity
Moderate
Public date
Oct 2, 2026, 11:28 PM