Vulnerability library
Security checkFebruary 13, 2026

beautiful-mermaid contains an SVG attribute injection issue that can lead to cross-site scripting (XSS)

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmbeautiful-mermaid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

beautiful-mermaid versions prior to 0.1.3 contain an SVG attribute injection issue that can lead to cross-site scripting (XSS) when rendering attacker-controlled Mermaid diagrams.

Recommendation

Update the beautiful-mermaid package to the latest compatible version. Followings are version details:

  • Affected version(s): < 0.1.3
  • Patched version(s): 0.1.3

References

Could your website be exposed too?

SmartScanner can check your website for beautiful-mermaid contains an SVG attribute injection issue that can lead to cross-site scripting (XSS) and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 13, 2026