Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-50159: Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts

31
Routine
MEDIUM 5.3

CVE-2026-50159 is a medium-severity flaw (CVSS 5.3) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 versio

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionPassive
EPSS exploit chance0.6% (top 52%)
CISA exploited listNo
WeaknessCWE-94
Published2026-08-06
Last modified2026-10-24
Publisher (CNA): GitHub, Inc.

Share: LinkedIn · X · Reddit

Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Exact fixes by distribution

npm · mermaid · FIXED · 11.16.1 · vulnerable: >= 11.0.0-alpha.1, < 11.16.1 · source
npm install mermaid@">=11.16.1" npm ls mermaid
Fedora 46 · sugar-clock · FIXED · 22.1-17.fc46 · FEDORA-2026-57948849df · source
sudo dnf upgrade --advisory=FEDORA-2026-57948849df
Fedora ELN · selinux-policy · FIXED · 45.23-1.eln159 · FEDORA-2026-3668c969a2 · source
sudo dnf upgrade --advisory=FEDORA-2026-3668c969a2
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-50159?

No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.

Is CVE-2026-50159 being exploited?

CVE-2026-50159 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-50159 affect?

CVE-2026-50159 affects affected software. Severity is medium (CVSS 5.3). 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 cla

How urgent is CVE-2026-50159?

Priority 31/100. No elevated risk signals yet.

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.