{"id":"CVE-2026-57530","published":"2026-07-24T19:08:20Z","modified":"2026-07-25T10:30:02Z","title":"Milkdown < 7.21.3 Stored XSS via javascript: URL in link href","vendor":"Milkdown","product":"milkdown","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.16802,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/Milkdown/milkdown/releases/tag/v7.21.3","tags":["release-notes","patch"]},{"url":"https://github.com/Milkdown/milkdown/pull/2410","tags":["issue-tracking","patch"]},{"url":"https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1","tags":["patch"]},{"url":"https://www.npmjs.com/package/@milkdown/preset-commonmark","tags":["product"]},{"url":"https://www.npmjs.com/package/@milkdown/components","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href","tags":["third-party-advisory"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":3.36},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"milkdown","affectedVersions":[{"vendor":"Milkdown","product":"milkdown","versions":["< 7.21.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-24T19:47:12.526718Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-48735","exploited":false,"provenance":"source"}}