Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @excalidraw/excalidraw
  4. ›
  5. GHSA-39h7-pwv7-rc3x

GHSA-39h7-pwv7-rc3x: Excalidraw vulnerable to XSS via Mermaid sequence diagram labels (KaTeX rendering)

April 24, 2026

@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).

References

  • github.com/advisories/GHSA-39h7-pwv7-rc3x
  • github.com/excalidraw/excalidraw/releases/tag/v0.18.1
  • github.com/excalidraw/excalidraw/security/advisories/GHSA-39h7-pwv7-rc3x
  • github.com/mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh

Code Behaviors & Features

Detect and mitigate GHSA-39h7-pwv7-rc3x with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.18.0 before 0.18.1

Fixed versions

  • 0.18.1

Solution

Upgrade to version 0.18.1 or above.

Weakness

  • CWE-1395: Dependency on Vulnerable Third-Party Component
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@excalidraw/excalidraw/GHSA-39h7-pwv7-rc3x.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:06 +0000.