{"id":"CVE-2026-57530","state":"PUBLISHED","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 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.","publishedAt":"2026-07-24T19:08:20.323Z","updatedAt":"2026-07-25T10:30:02.895Z","severity":{"score":5.1,"label":"Medium","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["Milkdown milkdown"],"affected":[{"vendor":"Milkdown","product":"milkdown","packageURL":"pkg:github/Milkdown/milkdown","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"7.21.3","versionType":"semver"}],"repo":"https://github.com/Milkdown/milkdown"}],"references":["https://github.com/Milkdown/milkdown/releases/tag/v7.21.3","https://github.com/Milkdown/milkdown/pull/2410","https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1","https://www.npmjs.com/package/@milkdown/preset-commonmark","https://www.npmjs.com/package/@milkdown/components","https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/57xxx/CVE-2026-57530.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-57530","state":"PUBLISHED","datePublished":"2026-07-24T19:08:20.323Z","dateUpdated":"2026-07-25T10:30:02.895Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-06-24T15:58:58.538Z"},"containers":{"cna":{"title":"Milkdown < 7.21.3 Stored XSS via javascript: URL in link href","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Milkdown","product":"milkdown","packageURL":"pkg:github/Milkdown/milkdown","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"7.21.3","versionType":"semver"}],"repo":"https://github.com/Milkdown/milkdown"}],"references":[{"url":"https://github.com/Milkdown/milkdown/releases/tag/v7.21.3","name":"Milkdown 7.21.3 Release Notes","tags":["release-notes","patch"]},{"url":"https://github.com/Milkdown/milkdown/pull/2410","name":"Pull Request","tags":["issue-tracking","patch"]},{"url":"https://github.com/Milkdown/milkdown/commit/db1ae721854a0ab2f188b83cf8695702966640f1","name":"Patch Commit","tags":["patch"]},{"url":"https://www.npmjs.com/package/@milkdown/preset-commonmark","name":"@milkdown/preset-commonmark","tags":["product"]},{"url":"https://www.npmjs.com/package/@milkdown/components","name":"@milkdown/components","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/milkdown-stored-xss-via-javascript-url-in-link-href","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","version":"3.1","baseSeverity":"MEDIUM","baseScore":5.4,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-07-25T10:30:02.895Z"},"tags":["x_open-source"],"datePublic":"2026-07-12T00:00:00.000Z","credits":[{"lang":"en","value":"Katriel Moses","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-24T19:47:12.526718Z","id":"CVE-2026-57530","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-24T19:47:26.041Z"}}]}}}