CVE-2026-50159 json
Mermaid allows CSS injection applying to sibling elements of the diagram
published 2026-08-06 3 mo ago modified 2026-10-24 15 d ago also EUVD-2026-54243 , GHSA-6x64-9x62-f2gx
- cvss
- 5.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mermaid 10.9.8, 11.16.1
- mermaid_project mermaid 10.9.8, 11.16.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-50159 updated cvss 4.3
mermaid: Mermaid: CSS injection allows altering page elements via diagram input
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 Red Hat OpenShift Dev Spaces devspaces/code-rhel9affected: workaround, no fix available “Avoid rendering untrusted or externally-sourced Mermaid diagram definitions in the affected workbench images until the pinned mermaid dependency is upgraded to 11.16.1 or later.”
-
Red Hat Build of Podman Desktop rh-podman-desktop.git 1.1.0not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L |
| CNA | 4.0 | 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mermaid | >=11.0.0-alpha.1, <11.16.1 <10.9.8 |
11.16.1 10.9.8 |
Affected products
- mermaid-js mermaid
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/mermaid-js/mermaid/pull/8022
web
-
github.com
/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
web
-
github.com
/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e
web
-
github.com
/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx
web
-
github.com
/mermaid-js/mermaid/releases/tag/mermaid@11.16.1
web
-
github.com
/mermaid-js/mermaid/releases/tag/v10.9.8
web
-
github.com
/mermaid-js/mermaid
package
Sources
- CVE List CVE-2026-50159
- GitHub Advisory GHSA-6x64-9x62-f2gx
- NVD CVE-2026-50159
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.