CVE-2026-50159CWE-94code-injection

CVE-2026-50159

published August 7, 2026

CVSS
5.3
EPSS
1%
Percentile
48.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
5.3 · NONE
CVSS v4.0
Not supplied
EPSS
0.00603 · 48.2th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-08-07T02:17Z
References (6)
EPSS history
Timeline
  • 06 AUG 19:55Z
    Mermaid allows CSS injection applying to sibling elements of the diagram
    cvelistv5