PT-2026-64410 · Milkdown · Milkdown+1

·

CVE-2026-57531

·

Published

2026-07-24

·

Updated

2026-07-27

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Milkdown versions prior to 7.21.3
Description A DOM cross-site scripting issue exists in the @milkdown/plugin-emoji package. Unauthenticated attackers can execute arbitrary JavaScript in the host application origin by tricking a victim into pasting attacker-controlled content. The parseDOM.getAttrs handler stores the raw innerHTML of pasted span elements containing data-type="emoji" without sanitization. Subsequently, the toMarkdown runner assigns this unsanitized value directly to a live DOM element's innerHTML, which bypasses the DOMPurify sanitization used in the toDOM path and triggers payload execution during every markdown serialization cycle.
Recommendations Update to version 7.21.3 or later.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-57531

Affected Products

@Milkdown/Plugin-Emoji
Milkdown