CVE-2021-43861

NameCVE-2021-43861
DescriptionMermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. Prior to version 8.13.8, malicious diagrams can run javascript code at diagram readers' machines. Users should upgrade to version 8.13.8 to receive a patch. There are no known workarounds aside from upgrading.
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
sid8.14.0+~cs11.4.14-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-mermaidsourcebullseye8.7.0+ds+~cs27.17.17-3+deb11u2
node-mermaidsource(unstable)8.13.8+~cs10.4.16-1

Notes

https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v
https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83

Search for package or bug name: Reporting problems