@excalidraw/excalidraw
Affected
- introduced
0.18.0, fixed0.18.1(semver)
Fixed versions
0.18.1
Fix
- Fixed version
0.18.1npm install @excalidraw/[email protected]
Advisory
Also known as: None
Excalidraw vulnerable to XSS via Mermaid sequence diagram labels (KaTeX rendering)
Impact
@excalidraw/[email protected] 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/[email protected] 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).
Patches
@excalidraw/[email protected] is patched.@excalidraw/excalidraw@next has resolved to patched builds since @excalidraw/[email protected] on 2025-08-21.@excalidraw/mermaid-to-excalidraw should use 1.1.3 or later.Workarounds
None.
Resources
Medium Basis: The source's own band: MODERATE
0.18.0, fixed 0.18.1 (semver)0.18.1
0.18.1npm install @excalidraw/[email protected]0.3.0, fixed 1.1.3 (semver)1.1.3
1.1.3npm install @excalidraw/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0