beautiful-mermaid is vulnerable to Cross-site Scripting (XSS)
61
CVE Score
Medium
Cross-site Scripting (XSS)
Affected versions of this package allow crafted Mermaid diagrams to inject arbitrary SVG attributes and elements because user-controlled values from style and classDef directives are interpolated into SVG attributes without proper escaping, enabling XSS and element injection. An attacker can exploit this by supplying malicious values that prematurely close SVG tags and inject new elements such as <svg onload> to execute JavaScript on render, or <image> tags to load external resources for data exfiltration.
Upgrade the beautiful-mermaid library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.0 - 0.1.2
Fixed in 0.1.3beautiful-mermaid is vulnerable to Cross-site Scripting (XSS) in versions 0.1.0 - 0.1.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.