CVE-2026-57530CWE-79

Milkdown < 7.21.3 Stored XSS via javascript: URL in link href

Medium · published July 24, 2026

CVSS v4.0
5.1
EPSS
0%
Percentile
23.1
In the wild
Unconfirmed
What it is

Milkdown before 7.21.3 contains a stored cross-site scripting vulnerability in the @milkdown/preset-commonmark and @milkdown/components packages that allows attackers with document write access to execute arbitrary JavaScript in the browser context of any user who opens the document or clicks a rendered link. The parseMarkdown runner stores raw URL values from the remark AST as href mark attributes without URL scheme validation, and the ineffective DOMPurify.sanitize call in edit-view.ts treats the bare URL string as a text node and returns it unchanged, allowing javascript: payloads to pass through the link-tooltip preview component and read-only mode anchor elements unmodified.

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
EPSS
0.00314 · 23.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-07-24T19:08Z
EPSS history
Timeline
  • 24 JUL 19:08Z
    Milkdown < 7.21.3 Stored XSS via javascript: URL in link href
    cvelistv5