CVE-2026-57530

published 24 Jul 2026 · updated 25 Jul 2026

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

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 7.21.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Milkdown<7.21.37.21.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-57530 severity on Zeptric[![CVE-2026-57530](https://zeptric.io/badge/cve/CVE-2026-57530.svg)](https://zeptric.io/cve/CVE-2026-57530)