CVE-2026-50159

MEDIUM CVSS 4.0: 5.3 EPSS 0.57%
Updated Aug 07, 2026
Mermaid
Parameter Value
CVSS 5.3 (MEDIUM)
Type CWE-94 (Code Injection)
Vendor Mermaid
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Weakness Type (CWE)