CVE-2026-57531
Last modified
CVE-2026-57531 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Milkdown before 7.21.3 contains a DOM cross-site scripting vulnerability in the @milkdown/plugin-emoji package that allows unauthenticated attackers to execute arbitrary JavaScript in the host application's origin by causing a victim to paste attacker-controlled content. The parseDOM.getAttrs handler stores raw innerHTML of pasted span elements with data-type="emoji" without sanitization, and the toMarkdown runner subsequently assigns this unsanitized value directly to a live DOM element's innerHTML, bypassing the DOMPurify sanitization used in the toDOM path, causing payload execution on every markdown serialization cycle.. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
Milkdown before 7.21.3 contains a DOM cross-site scripting vulnerability in the @milkdown/plugin-emoji package that allows unauthenticated attackers to execute arbitrary JavaScript in the host application's origin by causing a victim to paste attacker-controlled content. The parseDOM.getAttrs handler stores raw innerHTML of pasted span elements with data-type="emoji" without sanitization, and the toMarkdown runner subsequently assigns this unsanitized value directly to a live DOM element's innerHTML, bypassing the DOMPurify sanitization used in the toDOM path, causing payload execution on every markdown serialization cycle.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Milkdown | milkdown | < 7.21.3 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-57531?
How severe is CVE-2026-57531?
How do I fix CVE-2026-57531?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-57522Bitwarden Server before 2026.5.0 contains a JSON injection v…5
- CVE-2026-57523Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-57525Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-57527Zed Attack Proxy (ZAP) ViewState add-on before version 4 con…8.8
- CVE-2026-5753The All-in-One WP Migration Unlimited Extension plugin for W…6.5
- CVE-2026-57530Milkdown before 7.21.3 contains a stored cross-site scriptin…5.4
- CVE-2026-57532Malicious HTML content contained in the layout specification…8.8
- CVE-2026-57533Malicious HTML content could be injected into the page preti…2.1
- CVE-2026-57534Malicious HTML content could be injected into the content of…2.1
- CVE-2026-57535Content injected to PDF rendering contexts could, in many pl…2.1
- CVE-2026-57536Our payment integration with Mollie did not properly validat…6.3
- CVE-2026-5754Reflected Cross-Site Scripting (XSS) Vulnerability in Radwar…6.1
Are you affected by CVE-2026-57531?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
