Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) indicates network-accessible, low-complexity exploitation requiring low privileges (authenticated user) and user interaction (victim must view the malicious diagram). The scope is changed, meaning impact extends beyond the vulnerable component. While the individual confidentiality and integrity impacts are rated low, the combination of public POC availability, authenticated-only requirement, and stored XSS nature elevates practical risk: attackers can embed payloads in project documentation that automatically execute when teammates view diagrams. The presence of a HackerOne report (ID 3566802) and vendor patch within months suggests this was a known, reportable issue rather than a zero-day. Real-world risk is moderate to moderately-high for GitLab instances with multi-user collaboration; the requirement for authentication and user interaction reduces but does not eliminate threat scope, particularly in organizations where documentation is widely shared. |
| Exploit ScenarioDerived | An authenticated attacker creates a malicious Mermaid diagram in a shared GitLab project (e.g., a README or wiki page) containing entity-encoded JavaScript payload, such as a diagram definition with embedded HTML entities that decode to event handlers. When a team member views the project documentation, the diagram renders in their browser and the embedded script executes with the victim's privileges, potentially stealing session cookies, API tokens, or performing actions on their behalf (such as creating admin accounts or exfiltrating sensitive data). A public proof-of-concept is available on HackerOne (https://hackerone.com/reports/3566802), reducing the barrier to exploitation for less-skilled attackers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 25, 2026
This vulnerability is a stored cross-site scripting (XSS) flaw in GitLab's Mermaid diagram rendering that allows authenticated users to inject arbitrary JavaScript code into other users' browsers through improperly sanitized entity-encoded content. The vulnerability affects GitLab CE/EE versions 17.7 before 18.8.7, 18.9 before 18.9.3, and 18.10 before 18.10.1, with a CVSS score of 5.4 (medium severity). A public proof-of-concept exploit is available on HackerOne, indicating active awareness in the security community.
RemediationAI
Immediately upgrade affected GitLab instances to version 18.10.1, 18.9.3, or 18.8.7 or later, depending on your current release track (see https://about.gitlab.com/releases/2026/03/25/patch-release-gitlab-18-10-1-released/). If immediate patching is not feasible, implement strict Content Security Policy (CSP) headers to restrict inline script execution and disable or restrict Mermaid diagram rendering in untrusted projects. Additionally, audit project documentation and merge requests for suspicious Mermaid diagram content, particularly those created or modified by external or newly-added collaborators. Enforce code review policies for documentation changes and consider temporarily disabling Mermaid rendering at the instance level until patches can be applied.
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
The vulnerability exists in GitLab's Mermaid diagram parser, a popular JavaScript-based diagramming library used for rendering flowcharts, sequence diagrams, and other visual elements. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation, aka Cross-site Scripting), which occurs when user-supplied input containing entity-encoded payloads is not properly sanitized before being rendered in the browser. Mermaid diagrams are processed server-side and embedded in web pages; the vulnerability arises from insufficient HTML entity decoding and escaping, allowing attackers to bypass sanitization filters by encoding malicious JavaScript within diagram syntax. The affected product is identified via CPE as cpe:2.3:a:gitlab:gitlab, with the flaw present across multiple major and minor versions of GitLab's Community and Enterprise editions.
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:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.org
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 17.7 before 18.8.7, 18.9 before 18.9.3, and 18.10 before 18.10.1 that could have allowed an authenticated user to execute arbitrary JavaScript in a user's browser due to improper sanitization of entity-encoded content in Mermaid diagrams.
Executive ViewAI
Organizations using GitLab CE/EE affecting all should be aware of moderate risk from CVE-2026-2973, a cross-site scripting vulnerability rated CVSS 5.4. Attackers could inject scripts to steal sessions or perform actions as authenticated users. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.
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-15809
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB