Vulnerability library
Security checkAugust 06, 2026

Mermaid configuration APIs allow prototype pollution

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

Low severitynpmmermaid

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Mermaid’s configuration setters (mermaid.initialize, mermaidAPI.setConfig, and mermaidAPI.updateSiteConfig) merge the caller-supplied configuration object into Mermaid’s internal config using the assignWithDepth deep-merge helper that is vulnerable to prototype pollution.

Recommendation

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

  • Affected version(s): **< 10.9.8 >= 11.0.0-alpha.1, < 11.16.1**
  • Patched version(s): **10.9.8 11.16.1**

References

Could your website be exposed too?

SmartScanner can check your website for Mermaid configuration APIs allow prototype pollution and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 06, 2026