CVSS 4.0
5.3 mediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:LMedium (5.3) in mermaid project mermaid. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in mermaid 10.9.6, 11.15.0.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:LCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Lmermaid (npm): fixed in 11.15.0, 10.9.6Explain CVE-2026-41159 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41159?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41159?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41159 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| mermaid_project:mermaid | before 10.9.6 |
| mermaid_project:mermaid | from 11.0.0 before 11.15.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-87f9-hvmw-gh4p | npm | mermaid | >=11.0.0-alpha.1 <11.15.0 | 11.15.0 |
| GHSA-87f9-hvmw-gh4p | npm | mermaid | <10.9.6 | 10.9.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 14 | node-mermaid | no fix listed | DEBIAN-CVE-2026-41159 |
| Ubuntu | 22.04:LTS, 26.10 | node-mermaid | no fix listed | UBUNTU-CVE-2026-41159 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Moderate.
This Moderate flaw in Mermaid, a JavaScript diagramming tool, allows for CSS injection that bypasses intended scoping. A remote attacker could exploit this by providing a specially crafted diagram, leading to page defacement and potential exfiltration of sensitive information from the Document Object Model (DOM). This impact is considered Moderate as it requires user interaction to render the malicious content.
Upgrade to Mermaid 11.8.1 or later. As a workaround, sanitize or reject user-supplied diagram definitions before rendering, or render diagrams in a sandboxed iframe with restricted CSP to limit the impact of CSS injection.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Build of Podman Desktop | rh-podman-desktop.git | Fix deferred | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 | Fix deferred | |
| Red Hat OpenShift Dev Spaces | devspaces/code-rhel9 | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41159.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.