GHSA-p3rp-vmj9-gv6v · Severity: high · Ecosystem: npm — Incorrect sanitisation function leads to `XSS` in mermaid
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.
Conclusion & alert: CVE-2021-43861 is rated Moderate Risk (51.7/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.49%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-01-23 | 0.41% | 0.49% | +0.08% |
| 2 | 2025-10-21 | 0.49% | 0.41% | -0.08% |
| 3 | 2025-07-10 | — | 0.49% | — |
Full EPSS history (8 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.2 | 3.1 | HIGH |
|
1.2 | 5.9 | [email protected] |
| 5.4 | 3.1 | MEDIUM |
|
2.3 | 2.7 | [email protected] |
| 3.5 | 2.0 | LOW |
|
6.8 | 2.9 | [email protected] |
GHSA-p3rp-vmj9-gv6v · Severity: high · Ecosystem: npm — Incorrect sanitisation function leads to `XSS` in mermaid
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2021-43861 not yet assigned priority: Debian including 1 source packages (node-mermaid), 1 status rows across 1 suites (bullseye): resolved 1. | https://security-tracker.debian.org/tracker/CVE-2021-43861 |
ubuntu
|
medium | CVE-2021-43861 medium priority: Ubuntu including 1 source packages (node-mermaid), 13 status rows across 13 suites (hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 6, ignored 5, needs-triage 1, released 1. | https://ubuntu.com/security/CVE-2021-43861 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| mermaid_project | mermaid | < 8.13.8 | cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83 | Patch Third Party Advisory |
| https://github.com/mermaid-js/mermaid/releases/tag/8.13.8 | Release Notes Third Party Advisory |
| https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v | Third Party Advisory |