{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-57530","id":"CVE-2026-57530","title":"Milkdown < 7.21.3 Stored XSS via javascript: URL in link href","description":"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 attribute","descriptionLong":"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.","published":"2026-07-24T19:08:20.323Z","updated":"2026-10-28T02:30:39.243135289Z","reserved":"2026-06-24T15:58:58.538Z","status":"Deferred","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":5.1,"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","rating":"medium","source":"VulnCheck"},"metrics":[{"version":"4.0","score":5.1,"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","rating":"medium","source":"VulnCheck"},{"version":"4.0","score":5.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"vulncheck.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"vulncheck.com"}],"rating":"medium","products":["milkdown"],"affectedProducts":[{"vendor":"Milkdown","product":"milkdown","defaultStatus":"affected","versions":[{"status":"affected","version":"0","versionType":"semver","lessThan":"7.21.3"}],"platforms":[]}],"packages":[],"cwes":["CWE-79"],"aliases":[],"references":[{"url":"https://github.com/Milkdown/milkdown/releases/tag/v7.21.3","tags":["release-notes","patch","fix"]},{"url":"https://github.com/Milkdown/milkdown/pull/2410","tags":["issue-tracking","patch","fix"]},{"url":"https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1","tags":["patch","fix"]},{"url":"https://www.npmjs.com/package/@milkdown/preset-commonmark","tags":["product","web"]},{"url":"https://www.npmjs.com/package/@milkdown/components","tags":["product","web"]},{"url":"https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57530.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57530","tags":["advisory"]},{"url":"https://github.com/Milkdown/milkdown","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00314,"epssPercentile":0.24843,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-57530","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57530","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-57530","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-57530","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}