PatchSiren cyber security CVE debrief
CVE-2026-50159 mermaid-js CVE debrief
CVE-2026-50159 Mermaid CSS Injection Vulnerability: 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. Mermaid users and maintainers should assess exposure and prioritize remediation based on the potential impact on page appearance or behavior.
- Vendor
- mermaid-js
- Product
- mermaid
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-06
- Original CVE updated
- 2026-09-08
- Advisory published
- 2026-08-06
- Advisory updated
- 2026-09-08
Who should care
Mermaid users and maintainers should assess exposure and prioritize remediation based on the potential impact on page appearance or behavior. This includes reviewing and updating Mermaid to version 10.9.8 or 11.16.1, verifying affected versions and scope, and monitoring for potential CSS injection attacks.
Why it matters
CVE-2026-50159 Mermaid CSS Injection Vulnerability requires attention from Mermaid users and maintainers to assess exposure and prioritize remediation.
- Potential alteration of page appearance or behavior
- Possible injection of arbitrary CSS
- Need for verification of affected versions and scope
- Priority for updating to fixed versions 10.9.8 or 11.16.1
Technical summary
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 vulnerability requires attention from Mermaid users and maintainers to assess exposure and prioritize remediation based on the potential impact on page appearance or behavior and to verify affected versions and scope.
Defensive priority
Medium priority for Mermaid users and maintainers
Recommended defensive actions
- Review and update Mermaid to version 10.9.8 or 11.16.1
- Assess exposure and prioritize remediation for systems using Mermaid
- Monitor for potential CSS injection attacks
- Verify affected versions and scope
- Review compensating controls for exposed systems
- Track exceptions and retest remediated assets
- Check relevant monitoring, detection, and logs for exposed assets
Evidence notes
The CVE record and NVD entry provide details on the vulnerability. However, the scope of affected versions and potential impact require verification from official sources. The vulnerability allows for CSS injection, which can lead to alteration of page elements. Verification of affected versions and scope is necessary. Official sources such as the CVE Program record and NIST NVD detail page should be consulted for accurate information.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-50159 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-50159
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-50159 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-50159
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/commit/12d472c9ed43f94814b110da8d7a9ae6dd5266ed
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/commit/7e83f1533318b307764d961906a73377266f4c5e
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/pull/8022
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/releases/tag/[email protected]
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8
-
Source reference
Unverified legacy reference
URL: https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6x64-9x62-f2gx
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.