kcve.ai취약점 정보 · 내 자산 확인

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

설명

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, <script> tags are stripped, which prevents cross-site scripting (XSS). This issue has been fixed in versions 10.9.6 and 11.15.0. If developers are unable to immediately upgrade, they can work around this issue by setting "securityLevel": "sandbox", which prevents the issue by rendering the mermaid diagram in a sandboxed <iframe>.

영향 받는 제품 제품 1개

  • mermaid-js

    mermaid

    해결 버전 있음

    영향 받는 버전

    • 11.0.0-alpha.1 이상 11.15.0 미만
    • 10.9.6 미만

    해결 버전

    • 11.15.0 이상
    • 10.9.6 이상

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의