CVE-2021-43861
lowpriority · track · 22EPSS 0.009 · 61 %ileEUUSEPSS · scored 2026-10-27
Mermaid 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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 3.5–7.2
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-p3rp-vmj9-gv6vIncorrect sanitisation function leads to `XSS` in mermaid2022-01-06ghsa · osvUS
### Impact Malicious diagrams can contain javascript code that can be run at diagram readers machines. ### Patches The users should upgrade to version 8.13.8 ### Workarounds You need to upgrade in order to avoid this issue.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83cnnvd
- https://github.com/mermaid-js/mermaid/releases/tag/8.13.8cnnvd
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6vcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-43861cnnvd
- https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83enisa_euvd
- https://github.com/mermaid-js/mermaid/releases/tag/8.13.8enisa_euvd
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6venisa_euvd
- https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83PatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan