Milkdown < 7.21.3 DOM XSS via innerHTML Assignment
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Milkdown | milkdown | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Milkdown | Milkdown |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.405% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Milkdown
Milkdown milkdown |
|
| Vendors & Products |
Milkdown
Milkdown milkdown |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Milkdown < 7.21.3 DOM XSS via innerHTML Assignment | |
| Weaknesses | CWE-79 | |
| References |
|
|
| Metrics |
cvssV3_1
|