Vulnerability library
Security checkMarch 16, 2026

OneUptime: Stored XSS via Mermaid Diagram Rendering (securityLevel: "loose")

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

High severitynpmoneuptime

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The Markdown viewer component renders Mermaid diagrams with securityLevel: "loose" and injects the SVG output via innerHTML. This configuration explicitly allows interactive event bindings in Mermaid diagrams, enabling XSS through Mermaid’s click directive which can execute arbitrary JavaScript.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for OneUptime: Stored XSS via Mermaid Diagram Rendering (securityLevel: "loose") and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 16, 2026