Vulnerability
CVE-2026-50159
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.
67 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-235c-92r9-2j35
- CGA-2f96-923q-47mh
- CGA-2wfr-vcfq-g8h3
- CGA-327f-9c8w-fr9f
- CGA-3mqq-24ph-9mwv
- CGA-4474-gp6h-vhrj
- CGA-4pp5-3954-6v96
- CGA-56qr-7979-c469
- CGA-58px-f7q8-8j8q
- CGA-59gx-ghfm-36h3
- CGA-59p9-5f99-h7vw
- CGA-5fjm-jq5f-vvgq
- CGA-5j46-f3w2-h59m
- CGA-6jh5-fch8-7fx4
- CGA-6mjj-p8p6-h7hp
- CGA-733x-9m6v-fwxj
- CGA-7rpx-w5v2-4ffm
- CGA-7vfr-5hp4-2wrx
- CGA-8343-92vx-hf7m
- CGA-84h3-rrp2-hq3v
- CGA-84qx-9fff-xvpp
- CGA-92f7-9rhw-rmh5
- CGA-92gc-f3cv-28wx
- CGA-9p63-6xjr-vm5c
- CGA-9p88-q6x7-95hc
- CGA-9phg-8qgm-w28x
- CGA-9r75-g856-29px
- CGA-9rr7-76fr-23q5
- CGA-cv39-xf99-cj2j
- CGA-cwm3-8pj5-5w7h
- CGA-f43c-8589-m6jp
- CGA-f58j-v5rx-ccf4
- CGA-g5c5-28h3-f6jr
- CGA-ggch-g3mw-3cgc
- CGA-gqq9-53gf-48hp
- CGA-gwqr-mqv6-7pg6
- CGA-hm3v-6cg6-5r34
- CGA-j5xf-8h9r-jjq7
- CGA-jhmm-pg8g-3ppv
- CGA-jjcw-5233-5mpx
- CGA-jqvr-qrwq-4gmc
- CGA-m5rp-p36g-gj56
- CGA-m843-43gf-g44x
- CGA-m948-g8g3-fvmv
- CGA-mh6w-x5jx-g3cr
- CGA-mj7v-qmp3-h389
- CGA-p8cq-7pqw-h9v7
- CGA-pchg-9mqc-mvrx
- CGA-qcjq-f2jg-fp62
- CGA-qj9v-g8cm-38pq
- CGA-qmgw-4fgq-rx7f
- CGA-qp7c-ffwx-6p9m
- CGA-r24j-73jc-5hqv
- CGA-rf5p-r8rf-cxgc
- CGA-rp52-346q-fx2q
- CGA-rrvp-ch7x-c2x7
- CGA-vfmr-4x7v-9vvv
- CGA-vg83-3grg-rr2w
- CGA-vrpm-mpj8-3x2j
- CGA-w93c-vvvr-892m
- CGA-wx22-fjmg-77mj
- CGA-xgrh-g3hx-f373
- CGA-xm9r-p6h2-3xgg
- CGA-xmgv-96wp-h4xr
-
DEBIAN-CVE-2026-50159
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…
-
GHSA-6x64-9x62-f2gx
Mermaid allows CSS injection applying to sibling elements of the diagram
-
UBUNTU-CVE-2026-50159
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…
References
- https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
- https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e
- https://github.com/mermaid-js/mermaid/pull/8022
- https://github.com/mermaid-js/mermaid/releases/tag/[email protected]
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx