Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.8 and 11.16.1, Mermaid is vulnerable to CSS injection via sibling combinator selectors generated from diagram-supplied class or id names. An attacker who can supply diagram text can inject arbitrary CSS into the rendered page, potentially altering the appearance or behavior of unrelated page elements. This issue is fixed in versions 10.9.8 and 11.16.1.
CVE-2026-50159
This medium-severity CVE scores 5.3 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.6%, top 55% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 5.3
- EG Score
- 5.3(medium)
- EG Risk
- 24(Track)EG Risk 24/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity53% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 45%
- KEV
- Not listed
Published
August 6, 2026
Last Modified
August 7, 2026
Advisory Details (6)
Auto-updated Aug 6, 2026Mermaid allows CSS injection applying to sibling elements of the diagram · Advisory · mermaid-js/mermaid · GitHub
https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gxv10.9.8
Patch available: mermaid-js/mermaid v10.9.8
https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8[email protected]
Patch available: mermaid-js/mermaid [email protected]
https://github.com/mermaid-js/mermaid/releases/tag/[email protected]Release Candidate 11.16.1
Patch available: mermaid-js/mermaid [email protected] (PR #8022 merged 2026-08-04)
https://github.com/mermaid-js/mermaid/pull/8022commit 7e83f1533318 (mermaid-js/mermaid)
Patch available: mermaid-js/mermaid v10.9.8 (contains commit 7e83f1533318)
https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5ecommit 12d472c9ed43 (mermaid-js/mermaid)
Patch available: mermaid-js/mermaid [email protected] (contains commit 12d472c9ed43)
https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266edVendor Advisories for CVE-2026-50159(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(3 across 3 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mermaid | 8.11.0+ds+~cs29.13.22-1 ... 9.2.2+~2.0.0-2 (15 versions) | — | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| node-mermaid | 8.11.0+ds+~cs29.13.22-1 ... 9.2.2+~2.0.0-2 (16 versions) | — | — |
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| mermaid | — | 10.9.8 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 27× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 14:18 UTCEG score recompute
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-18 17:53 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 19:24 UTCEG score recompute
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 20:36 UTCEG score recompute
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 22:47 UTCEG score recompute
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 03:09 UTCEG score recompute
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 05:20 UTCEG score recompute
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-12 07:31 UTCEG score recompute
- 2026-08-11 09:42 UTCEG score recompute
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-09 14:04 UTCEG score recompute
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-07 18:27 UTCEG score recompute
- 2026-08-07 17:27 UTCEG score recompute
- 2026-08-06 22:19 UTCEG score recompute▲ 5.30
Show 2 moreShow fewer
- 2026-08-06 22:18 UTCNVD updateCVSS v3 → 5.3 · CVSS v4 → 5.3
- 2026-08-06 20:07 UTCEG score recompute
Related CVEs(same CWE)
Same CWE
10 shownCWE-94
- CVE-2003-1432EG 10.0EPSS p94HIGH
- CVE-2002-0495EG 10.0EPSS p96HIGH
- CVE-1999-0702EG 10.0EPSS p98HIGH
- CVE-1999-0509EG 10.0EPSS p98HIGH
- CVE-2006-1318EG 9.3EPSS p97HIGH
- CVE-2006-1301EG 9.3EPSS p95HIGH
- CVE-2006-1308EG 9.3EPSS p95HIGH
- CVE-2006-1309EG 9.3EPSS p95HIGH
- CVE-2006-1304EG 9.3EPSS p96HIGH
- CVE-2006-1306EG 9.3EPSS p95HIGH
Frequently asked(5)
What is CVE-2026-50159?
When was CVE-2026-50159 disclosed?
Is CVE-2026-50159 actively exploited?
What is the CVSS score of CVE-2026-50159?
How do I remediate CVE-2026-50159?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-50159
Is Your Infrastructure Affected by CVE-2026-50159?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.