{"id":"CVE-2026-57530","aliases":["CVE-2026-57530"],"related":[],"kind":"vulnerability","state":"published","title":"Milkdown < 7.21.3 Stored XSS via javascript: URL in link href","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-07-24T19:08:20.323Z","modified":"2026-07-27T20:37:34.230Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"7.21.3","status":"affected"}],"vendor":"Milkdown","product":"milkdown","repo":"https://github.com/Milkdown/milkdown","source":"cvelist"}],"references":[{"url":"https://github.com/Milkdown/milkdown/releases/tag/v7.21.3","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Milkdown/milkdown/pull/2410","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.npmjs.com/package/@milkdown/preset-commonmark","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.npmjs.com/package/@milkdown/components","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Katriel Moses"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-24T19:47:12.526Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57530","url":"https://www.cve.org/CVERecord?id=CVE-2026-57530","licence":"CVE Terms of Use","modified":"2026-07-25T10:30:02.895Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57530","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57530","licence":"Public domain","modified":"2026-07-27T20:37:34.230Z"}],"updatedAt":"2026-11-25T22:59:30.031Z","epss":{"score":0.00178,"percentile":0.07698,"date":"2026-12-01T12:00:22.000Z"}}