CVE-2026-41149 – Mermaid: Improper sanitization of `classDef` in state diagrams leads to HTML injection

CVE ID :CVE-2026-41149

Published : May 22, 2026, 10:34 p.m. | 1 hour, 23 minutes ago

Description :Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and earlier, as well as 11.0.0-alpha.1 through 11.14.0, are vulnerable to HTML injection under the default configuration. Specifically, the classDef directive in Mermaid state diagrams permits DOM injection that escapes the SVG context. However, 

نوشته های مشابه