Loading advisory.
Loading advisory.
Excalidraw vulnerable to XSS via Mermaid sequence diagram labels (KaTeX rendering)
@excalidraw/excalidraw@0.18.0 depends on a Mermaid conversion package version that resolves to a Mermaid release affected by CVE-2025-54881 / GHSA-7rqq-prvp-x9jh. User-supplied Mermaid sequence diagram labels could trigger XSS through Mermaid’s KaTeX label rendering path.
Published 2026-04-24 20:41 UTC · Modified 2026-05-05 16:02 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @excalidraw/excalidraw | npm | >= 0.18.0, < 0.18.1 versions 0.18.0 | 0.18.1 | npm install @excalidraw/excalidraw@0.18.1 |
| @excalidraw/mermaid-to-excalidraw | npm | >= 0.3.0, < 1.1.3 | 1.1.3 | npm install @excalidraw/mermaid-to-excalidraw@1.1.3 |
@excalidraw/excalidraw@0.18.0 depends on a Mermaid conversion package version that resolves to a Mermaid release affected by CVE-2025-54881 / GHSA-7rqq-prvp-x9jh. User-supplied Mermaid sequence diagram labels could trigger XSS through Mermaid’s KaTeX label rendering path.
This is patched in @excalidraw/excalidraw@0.18.1 by updating @excalidraw/mermaid-to-excalidraw to 2.2.2, which uses a patched Mermaid 11 release.
Moderate severity as this XSS requires manual user action - pasting unsafe Mermaid diagram into the Excalidraw editor. No semi-automated attack vector exists by default (such as accessing a link).
Stable @excalidraw/excalidraw@0.18.1 is patched.
Unstable @excalidraw/excalidraw@next has resolved to patched builds since @excalidraw/excalidraw@0.18.0-f29edf on 2025-08-21.
Direct consumers of @excalidraw/mermaid-to-excalidraw should use 1.1.3 or later.
None.
Upstream Mermaid advisory: https://github.com/mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh
CVE-2025-54881
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.