npm
mermaid
8 known vulnerabilities · 0 critical · 1 high
Mermaid improperly sanitizes sequence diagram labels leading to XSS
Published Aug 19, 2025
CVE-2022-31108MEDIUM
Possible inject arbitrary `CSS` into the generated graph affecting the container HTML
Published Jul 5, 2022
Mermaid does not properly sanitize architecture diagram iconText leading to XSS
Published Aug 19, 2025
OneUptime: Stored XSS via Mermaid Diagram Rendering (securityLevel: "loose")
Published Mar 13, 2026
beautiful-mermaid contains an SVG attribute injection issue that can lead to cross-site scripting (XSS)
Published Feb 13, 2026
Improper Control of Generation of Code ('Code Injection') in mdx-mermaid
Published Aug 31, 2022
Check your entire dependency tree at onceRun dependency scan →