Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Milkdown < 7.21.3 DOM XSS via innerHTML Assignment
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Vulnerability Title
Milkdown 跨站脚本漏洞
Vulnerability Description
Milkdown milkdown是Milkdown组织的一个基于Markdown的富文本编辑器。 Milkdown 7.21.3之前版本存在跨站脚本漏洞,该漏洞源于@milkdown/plugin-emoji包中存在DOM跨站脚本漏洞,parseDOM.getAttrs处理粘贴的span元素原始innerHTML时未进行清理,且toMarkdown直接将其赋值给innerHTML,绕过DOMPurify清理,可能导致未经身份验证的攻击者通过用户粘贴攻击者控制的内容在主机应用源中执行任意JavaScrip
CVSS Information
N/A
Vulnerability Type
N/A