Skip to main content

Gitlab EUVDEUVD-2026-15809

| CVE-2026-2973 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-03-25 GitLab
5.4
CVSS 3.1 · NVD
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GitLab 18.10 <18.10.1
GitLab 18.9 <18.9.3
GitLab 17.7 <18.8.7

Affected Packages

euvd gitlab fix: 18.8.7, 18.9.3, 18.10.1

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

NVD PRIMARY 5.4 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Patch available
Apr 16, 2026 - 05:29 EUVD
18.10.1,18.9.3,18.8.7
PoC Detected
Mar 26, 2026 - 17:43 vuln.today
Public exploit code
CVE Published
Mar 25, 2026 - 16:34 nvd
MEDIUM 5.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement CSP headers, enable HttpOnly cookies, deploy WAF XSS rules.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Gitlab

View all
CVE-2021-22205 CRITICAL POC
10.0 Apr 23

An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. Rated critical severity (CVSS 10

CVE-2023-7028 CRITICAL POC
10.0 Jan 12

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.

CVE-2021-22175 CRITICAL POC
9.8 Jun 11

When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab af

CVE-2026-85706 CRITICAL POC
10.0 Sep 12

Unauthenticated arbitrary file read in GitLab CE/EE lets remote attackers retrieve files from the GitLab server via the

CVE-2026-97229 CRITICAL POC
10.0 Oct 13

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)

CVE-2013-4490 MEDIUM POC
6.5 May 13

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

CVE-2022-2992 CRITICAL POC
9.9 Oct 17

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

CVE-2024-45409 CRITICAL POC
9.8 Sep 10

The Ruby SAML library is for implementing the client side of a SAML authorization. Rated critical severity (CVSS 9.8), t

CVE-2026-110264 CRITICAL POC
10.0 Oct 22

Remote code execution in GitLab CE/EE can be triggered by a specially crafted regular expression processed through a vul

CVE-2026-87719 CRITICAL POC
9.9 Sep 12

Sensitive credential and configuration disclosure in GitLab Enterprise Edition allows an authenticated user with Duo Cha

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

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

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy