Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

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

34
Routine
MEDIUM 5.3REMOTEUPGRADE

CVE-2026-41159 is a medium-severity flaw (CVSS 5.3) affecting mermaid. 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.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside of the Mermaid diagram via the fontFamily, themeCSS, and altFontFamily configuration options. The injected CSS exploits stylis's & (scope reference) handling. :not(&) escapes the #mermaid-xxx automatic scoping, applying styles to all page ele

Why this priority

  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.5% (top 58%)
CISA exploited listNo
WeaknessCWE-94
Published2026-05-29
Last modified2026-07-21
Publisher (CNA): GitHub, Inc. · Vendor: mermaid project

Share: LinkedIn · X · Reddit

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

Am I affected?

Timeline

mermaid project mermaid UPGRADE
Affected: < 10.9.6 · >= 11.0.0 and < 11.15.0
Fixed in: 10.9.6, 11.15.0
Safe to downgrade to: a release before 11.0.0
1. Check installed version
npm ls mermaid
2. UPGRADE to 10.9.6
npm install mermaid@">=10.9.6"
3. If no update is available yet, DOWNGRADE to a release before 11.0.0
npm view mermaid versions npm install mermaid@"<11.0.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
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-41159?

mermaid: upgrade to 10.9.6, 11.15.0. Exact commands for each OS are on this page.

Is CVE-2026-41159 being exploited?

CVE-2026-41159 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-41159 affect?

CVE-2026-41159 affects mermaid. 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.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside of the Mermaid diagram via the f

How urgent is CVE-2026-41159?

Priority 34/100. Remotely exploitable, no login, no user action

Related CVEs

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.