CVE-2026-50159

Mermaid allows CSS injection applying to sibling elements of the diagram

MEDIUM
5.3
CVSS Score
Published: August 6, 2026 at 07:55 PM UTC
Updated: October 24, 2026 at 04:10 PM UTC
1 product affected across 1 vendorMermaid

Using mermaid by mermaid-js?

Get instant alerts when new vulnerabilities affect mermaid - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 10.9.8>= 11.0.0-alpha.1, < 11.16.1
Affected range stops below 10.9.8, so it looks safe — our inference, not a vendor statement
Affected range stops below 11.16.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMGitHub_M
Vector?

Quick Info

StatusAWAITING ANALYSIS
CWE
CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card