CVE-2026-57530
published medium CVSS 4.0 · 5.1Milkdown < 7.21.3 Stored XSS via javascript: URL in link href
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Milkdown | — | milkdown0 to < 7.21.3 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Milkdown | milkdown | 0 to < 7.21.3 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
6- Patch Commit https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1
- Pull Request https://github.com/Milkdown/milkdown/pull/2410
- Milkdown 7.21.3 Release Notes https://github.com/Milkdown/milkdown/releases/tag/v7.21.3
- @milkdown/components https://www.npmjs.com/package/@milkdown/components
- @milkdown/preset-commonmark https://www.npmjs.com/package/@milkdown/preset-commonmark
- https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href
Provider assertions
2VulnCheck · cna
Milkdown < 7.21.3 Stored XSS via javascript: URL in link href
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 84faa45c7cc04c549fb6cb799b7b3cd390aa9bb1e5df1a646f5916dc1a3d2ef8
- Ingested
- 23 Sep 2026, 09:21:43 UTC
- Source record
- Official CVE record