Vulnerability library
Security checkFebruary 03, 2023

Incorrect sanitisation function leads to `XSS` in mermaid

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

High severitynpmmermaid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Malicious diagrams can contain javascript code that can be run at diagram readers machines.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Incorrect sanitisation function leads to `XSS` in mermaid and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 03, 2023