# CVE-2026-57530: Milkdown < 7.21.3 Stored XSS via javascript: URL in link href

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-07-24T19:08:20.323Z
- Modified: 2026-07-27T20:37:34.230Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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 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.

(As written by CVE List.)

## Affected

- Milkdown milkdown: before 7.21.3

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Milkdown/milkdown/releases/tag/v7.21.3> (patch, release-notes)
- <https://github.com/Milkdown/milkdown/pull/2410> (issue-tracking, patch)
- <https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1> (patch)
- <https://www.npmjs.com/package/@milkdown/preset-commonmark> (product)
- <https://www.npmjs.com/package/@milkdown/components> (product)
- <https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-57530](https://www.cve.org/CVERecord?id=CVE-2026-57530), CVE Terms of Use, modified 2026-07-25
- NVD: [CVE-2026-57530](https://nvd.nist.gov/vuln/detail/CVE-2026-57530), Public domain, modified 2026-07-27

---

Page: https://cve.day/CVE-2026-57530 · Whole record: https://cve.day/CVE-2026-57530.json · Rebuilt by cve.day 2026-11-25T22:59:30.031Z
