Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged GitLab user
-
DeliveryCreate merge request with malicious path component
-
ExploitVictim opens MR diff viewer
-
ExecutionUnsanitized path executes JavaScript
-
ImpactHijack victim's session in browser context
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. |
| Exploitation Conditions | Requires an authenticated GitLab CE/EE account with sufficient privilege to create or modify a merge request (PR:L), and a specific triggering condition: the crafted malicious content must reside in a path component that flows into the merge request diff viewer, which improperly sanitizes it. Exploitation further requires a second user to view that merge request's diff (UI:R) for the JavaScript to fire in their session. Limiting factors: victim interaction is mandatory, the attacker must already hold a valid account on the instance, exploitation is scoped to instances running affected versions (13.11 up to the fixed 19.2.7/19.3.3/19.4.1 releases), and the description notes it only occurs 'under certain conditions' in the diff viewer rather than universally. |
| Impact | This is a genuine priority, not a paper tiger. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N) describes a network-reachable, low-complexity stored/DOM XSS requiring only a low-privileged authenticated account and victim interaction, with a scope change (S:C) reflecting that code executes in a different user's browser context. Publicly available exploit code exists (HackerOne report #3938482 linked as an 'exploit' reference), which meaningfully raises real-world risk. However, the vulnerability is NOT in CISA KEV - there is no confirmation of active exploitation - and no EPSS score was provided in the input, so the probability of widespread automated exploitation cannot be quantified here. The description's qualifier 'under certain conditions' indicates exploitation is not fully universal against every MR, tempering the raw score. Net: high-severity, vendor-confirmed, patch-available, POC-public issue in a ubiquitous DevOps platform - treat as high priority for patching, but note that POC availability is distinct from confirmed in-the-wild use. |
| Exploit ScenarioDerived | An authenticated GitLab user with permission to push a branch or open a merge request crafts a source/target path containing a malicious payload that the merge request diff viewer fails to sanitize. When another user (e.g., a reviewer or maintainer) opens that merge request's diff, the JavaScript executes in their authenticated session, allowing session/token theft or actions performed as the victim. A public POC exists via the referenced HackerOne report, lowering the barrier to reproduction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 29, 2026
Stored cross-site scripting in GitLab CE/EE lets an authenticated user who can create or modify a merge request embed crafted content in a path component that the merge request diff viewer fails to sanitize, so arbitrary JavaScript executes in the browser session of any other user who views that diff. All versions from 13.11 up to the fixed releases 19.2.7, 19.3.3 and 19.4.1 are affected; the CVSS 3.1 base score is 8.7 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N), reflecting network reachability, low privileges required, mandatory victim interaction, and a scope change because the attacker compromises a different user's session rather than their own. Publicly available exploit code exists - the issue was disclosed through GitLab's HackerOne program - but there is no evidence of confirmed active exploitation (CISA KEV) at time of analysis.
RemediationAI
Vendor-released patch: upgrade to GitLab 19.2.7, 19.3.3, or 19.4.1 (or later) on the applicable maintenance track, as documented in the patch release advisory at https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-1-released/. Upgrading to the latest available minor release is preferred for instances that have fallen several branches behind. Where immediate upgrade is impossible, compensating controls are limited because the payload is stored in normal merge request content and the trigger is a routine reviewer action: restrict who can create or modify merge requests on sensitive projects (for example by tightening project/group membership and using protected branches so path components cannot be introduced by untrusted contributors), accepting the trade-off of reduced collaboration velocity; require merge request review by a small trusted set of users rather than broad membership, which reduces the number of potential victims but does not remove the flaw; and enforce a restrictive Content-Security-Policy at the reverse proxy in front of GitLab to blunt script execution, recognizing that GitLab's own asset and inline-script requirements make a strict policy operationally difficult and it may break UI features. Raising the account-provisioning bar on self-managed instances - disabling open registration and requiring administrator approval - reduces the population of accounts that can plant payloads, at the cost of onboarding friction. Treat the public HackerOne report at https://hackerone.com/reports/3938482 as evidence that exploit details are available, and prioritize patching any instance where untrusted or external users are granted merge request permissions.
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 flaw is a stored (persistent) cross-site scripting condition, CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), localized to the merge request diff viewer of GitLab CE and EE. When a merge request diff is rendered, file path components derived from repository content are presented to the browser, and those path components are not sanitized correctly before being emitted into the page. Because the payload is stored in repository/merge request content rather than reflected in a request, it persists until an unsuspecting second user opens the affected diff - matching the UI:R prerequisite in the assessed vector. The scope change (S:C) is meaningful here: the script executes in the victim's browsing context with that user's privileges and session cookies/CSRF tokens, so an attacker holding only a low-privileged account can act as a higher-privileged reviewer or maintainer. The CVSS vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N indicates no authentication bypass is needed to reach the endpoint, but a valid account is required to plant the payload and victim interaction is required to trigger it. The CPE entry cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:* is a wildcard, reflecting that GitLab tracks CE and EE under a single product identifier across self-managed and GitLab.com deployments.
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:H/I:H/A:N
Network-reachable diff viewer with a low-priv account (PR:L) and required victim view (UI:R); XSS runs in the victim's session (S:C) enabling session/data theft and actions (C:H/I:H), no availability impact.
Primary rating from Vendor (GitLab).
CVSS VectorVendor: GitLab
Lifecycle Timeline
2DescriptionCVE.org
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 13.11 before 19.2.7, 19.3 before 19.3.3, and 19.4 before 19.4.1 that under certain conditions could have allowed an authenticated user to execute arbitrary JavaScript in the context of another user's browser session due to improper sanitization of path components in the merge request diff viewer.
Executive ViewAI
GitLab CE/EE is affected by a stored cross-site scripting vulnerability that allows an authenticated user to execute arbitrary JavaScript in the browser session of any other user who views a crafted merge request diff. This could lead to session hijacking, unauthorized data access, and compromise of sensitive code repositories, impacting development teams and potentially exposing intellectual property. Publicly available exploit code exists, and with a high CVSS score of 8.7, security leadership should prioritize remediation to prevent insider threats or lateral movement within development environments.
Apply vendor patch.
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-88687
GHSA-hrj5-qwx9-f2q7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB