Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to GitLab instance
-
DeliveryCreate or edit diagram with malicious payload
-
ExploitSocialize victim to view diagram
-
ExecutionMermaid sandbox bypassed
-
PersistXSS payload executes in victim browser
-
ImpactSession token or action theft occurs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V3 - Web Frontend Security Clickjacking prevention, X-Frame-Options
|
| Exploitation Conditions | Exploitation requires the attacker to be an authenticated GitLab user (PR:L in CVSS vector). The attacker must have permission to create or edit content containing Mermaid diagrams (e.g., project wikis, issues, merge request descriptions, or boards). The victim must actively view the diagram-containing page in their browser (UI:R - User Interaction Required). The vulnerability is specific to GitLab versions 18.11.0 and is not exploitable on default installations of versions 18.10 or earlier or 18.11.1 and later. No special GitLab configuration options or non-standard deployment modes are required; the vulnerability exists in the standard Mermaid sandbox implementation shipped with affected versions. |
| Impact | This vulnerability presents LOW real-world risk despite publicly available exploit code. The CVSS vector (AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N) and SSVC framework align in severity: unauthenticated exploitation is blocked by the PR:L (Login Required) requirement, and successful exploitation requires UI:R (user interaction - the victim must view the malicious diagram). The attacker's scope is limited to session/browser context (S:U, Unchanged Scope) with no confidentiality or availability impact, only integrity (I:L). SSVC decision data ('Exploitation: none, Automatable: no, Technical Impact: partial') contradicts the notion of active exploitation despite POC availability, suggesting the exploit requires manual crafting and delivery, not mass weaponization. Organizations with tight control over diagram authorship and security awareness training can further mitigate risk. However, any GitLab instance where untrusted users can create diagrams should patch promptly. |
| Exploit ScenarioDerived | An authenticated attacker with a valid GitLab account crafts a malicious Mermaid diagram containing injected JavaScript or HTML payloads. When a victim views the diagram (e.g., in a merge request, wiki, or project board), the Mermaid sandbox fails to neutralize the payload, and the JavaScript executes in the victim's browser under the same origin as GitLab, potentially stealing session tokens or performing actions on behalf of the victim. The attacker must socially engineer or have legitimate project visibility to ensure the victim views the diagram. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
Cross-site scripting (XSS) in GitLab CE/EE 18.11 before 18.11.1 allows authenticated users to inject unauthorized content into other users' browsers through improper input validation in the Mermaid diagram sandbox. An attacker must have valid GitLab credentials and the victim must view a malicious diagram, limiting real-world impact despite the publicly available exploit code. SSVC analysis rates this as non-automatable with partial technical impact, consistent with the low CVSS 3.5 score.
RemediationAI
Upgrade to GitLab CE/EE version 18.11.1 or later to apply the vendor-released patch. GitLab has remediated the improper input validation in the Mermaid sandbox as documented in the official work item (https://gitlab.com/gitlab-org/gitlab/-/work_items/591587). No workarounds are available for versions prior to 18.11.1 other than restricting diagram creation to trusted administrators or temporarily disabling Mermaid diagram rendering by administrative policy. Organizations unable to upgrade immediately should audit recent diagram activity for suspicious content and consider limiting access to diagram creation features.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitLab integrates the Mermaid diagram rendering library, which generates flowcharts, sequence diagrams, and other visual content from user-provided input. The vulnerability stems from CWE-1021 (Improper Restriction of Rendered UI Layers or Frames), indicating the Mermaid sandbox mechanism failed to properly isolate and validate input before rendering within the browser context. The affected CPE (cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*) indicates GitLab Community Edition and Enterprise Edition are vulnerable. The XSS occurs within the Mermaid diagram parser/renderer, where malicious syntax or escaped content bypasses the intended sandboxing controls and executes in the victim's browser session.
Know when Gitlab gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
Primary rating from Vendor (GitLab) · only source for this CVE.
CVSS VectorVendor: GitLab
Lifecycle Timeline
4DescriptionCVE.org
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.11 before 18.11.1 that under certain conditions could have allowed an authenticated user to load unauthorized content into another user's browser due to improper input validation in the Mermaid sandbox.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. Rated critical severity (CVSS 10
An issue has been discovered in GitLab CE/EE affecting all versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.
When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab af
Unauthenticated arbitrary file read in GitLab CE/EE lets remote attackers retrieve files from the GitLab server via the
Remote code execution in GitLab CE/EE (all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2)
The SSH key upload feature (lib/gitlab_keys.rb) in gitlab-shell before 1.7.3, as used in GitLab 5.0 before 5.4.1 and 6.x
A vulnerability in GitLab CE/EE affecting all versions from 11.10 prior to 15.1.6, 15.2 to 15.2.4, 15.3 to 15.3.2 allows
The Ruby SAML library is for implementing the client side of a SAML authorization. Rated critical severity (CVSS 9.8), t
Remote code execution in GitLab CE/EE can be triggered by a specially crafted regular expression processed through a vul
Sensitive credential and configuration disclosure in GitLab Enterprise Edition allows an authenticated user with Duo Cha
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
EUVD-2026-24961
GHSA-rv75-mvrq-37g2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB