CVE-2025-54881

NameCVE-2025-54881
DescriptionMermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-mermaid (PTS)bullseye8.7.0+ds+~cs27.17.17-3+deb11u2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-mermaidsourcebullseye(not affected)
node-mermaidsource(unstable)(unfixed)

Notes

[bullseye] - node-mermaid <not-affected> (Vulnerable code not present)
https://github.com/mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh

Search for package or bug name: Reporting problems