CVE-2021-43861

Description

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.

Severity
HIGH
CVSS v3
7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
0.938%
chance of exploitation in the next 30 days
higher than 61.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-12-30Published by the CNA13:40 UTC
  2. 2022-01-06GitHub advisory published (GHSA-p3rp-vmj9-gv6v)7 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-p3rp-vmj9-gv6v, affected packages:

PackageVulnerable versionsFixed in
npm mermaidbefore 8.13.88.13.8

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
mermaid_project mermaidbefore 8.13.8fixed in 8.13.88.13.8

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources