GitLab
CVE-2025-13761
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify logged-in GitLab user
-
DeliveryDeliver crafted webpage link
-
ExploitVictim visits page, XSS fires
-
ExecutionScript runs in GitLab session
-
PersistSteal session/act as user
-
ImpactRepo or account compromise
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 | Exploitation requires (1) a vulnerable self-managed or SaaS GitLab CE/EE instance on 18.6-18.6.2 or 18.7.0; (2) a victim who is an authenticated GitLab user with an active session; and (3) that victim being convinced to visit a specially crafted webpage (UI:R). The attacker themselves needs no GitLab account (PR:N, unauthenticated). What limits exploitation: it is not automatable against servers directly - it depends on human interaction from a logged-in user, so it cannot be sprayed at scale, and the achievable impact is bounded by the privileges of the targeted user's session. It does not affect instances already on 18.6.3 or 18.7.1+. |
| Impact | Signals here partly conflict. CVSS 3.1 is critical at 9.6 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H), driven by network reach, low complexity, no privileges, and a scope change - but it requires user interaction (UI:R), the victim must be a logged-in GitLab user, and the C/I/A:H ratings are generous for an XSS that is bounded by what the victim's session can do. EPSS is very low at 0.04% (12th percentile), and the vulnerability is not on CISA KEV, indicating no evidence of widespread automated exploitation. No public exploit code was identified (the HackerOne report 3441368 is the disclosure channel, not a published PoC). SSVC-style framing: exploitation status appears 'none' (no observed exploitation/PoC), automatable is 'no' because it needs a human victim to visit a crafted page, and technical impact is high. Net: a real, vendor-confirmed critical-rated XSS that should be patched promptly, but it depends on social engineering of an authenticated user rather than being a mass-exploitable RCE - practical risk is meaningfully lower than the 9.6 alone suggests. |
| Exploit ScenarioDerived | An attacker crafts a malicious webpage (or a GitLab resource containing a crafted payload) and lures a logged-in GitLab user to open it; the injected script executes in the victim's authenticated GitLab origin and can exfiltrate session tokens or perform repository/account actions as that user. Given AV:N/AC:L with UI:R, the technical barrier is low but success hinges on social-engineering a valid authenticated user into visiting the page. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Cross-site scripting in GitLab CE/EE (18.6 before 18.6.3 and 18.7 before 18.7.1) lets an unauthenticated attacker run arbitrary JavaScript in the browser of a logged-in victim who is lured to a specially crafted webpage, enabling session theft and actions performed as that authenticated user. The flaw carries a critical CVSS 9.6 with a scope change, reflecting impact that crosses from the vulnerable component into the victim's authenticated session. No public exploit identified at time of analysis, and EPSS is very low (0.04%, 12th percentile), but the vendor-confirmed nature and HackerOne report indicate a credible, validated issue.
Earlier versions of this analysis (4)
Cross-site scripting in GitLab CE/EE 18.6 prior to 18.6.3 and 18.7 prior to 18.7.1 lets an unauthenticated attacker run arbitrary script in a logged-in victim's browser session by luring them to a specially crafted webpage. Despite the 'RCE' tag, this is client-side code execution within the victim's authenticated GitLab context (session/account takeover), not server-side code execution. No public exploit identified at time of analysis, and EPSS is low (0.04%), though the CVSS is 9.6 due to scope change and full impact on the victim session.
Cross-site scripting in GitLab CE/EE (18.6 before 18.6.3 and 18.7 before 18.7.1) lets an unauthenticated attacker run arbitrary JavaScript in the browser session of an authenticated victim who is lured to a crafted webpage, enabling session/account compromise within the GitLab application. Rated CVSS 9.6 with a changed scope, the flaw requires user interaction but no attacker authentication. No public exploit identified at time of analysis, and the EPSS probability is very low (0.04%), but the issue was reported via HackerOne and patched by GitLab.
Cross-site scripting in GitLab CE/EE 18.6 (before 18.6.3) and 18.7 (before 18.7.1) lets an unauthenticated attacker run arbitrary script in the context of a victim's authenticated session when that user is lured to a specially crafted web page. Rated CVSS 9.6 with a scope change because the injected script executes with the victim's GitLab privileges, the issue is patched in 18.6.3 and 18.7.1. There is no public exploit identified at time of analysis and the EPSS probability is low (0.04%, 12th percentile), though a HackerOne bounty report underlies the disclosure.
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.6 before 18.6.3, and 18.7 before 18.7.1 that could have allowed an unauthenticated user to execute arbitrary code in the context of an authenticated user's browser by convincing the legitimate user to visit a specially crafted webpage. [CVSS 8.0 HIGH]
RemediationAI
Vendor-released patch: upgrade GitLab CE/EE to 18.6.3 (for the 18.6 branch) or 18.7.1 (for the 18.7 branch) or later, per the GitLab patch release advisory (https://about.gitlab.com/releases/2026/01/07/patch-release-gitlab-18-7-1-released/) and issue 582237. As GitLab strongly recommends running the latest patched release of your minor version, prioritize this upgrade for internet-facing instances. If immediate patching is not possible, compensating controls include restricting GitLab web access to trusted networks/VPN to limit who can be lured into the authenticated context, enforcing a strict Content-Security-Policy to reduce inline-script execution (trade-off: may break custom integrations or embedded content), and educating users not to follow untrusted links while logged into GitLab (trade-off: relies on human behavior and is not a reliable control). These are stopgaps only; the upgrade is the definitive fix.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitLab is a self-managed and SaaS DevOps platform (Git repository management, CI/CD, issue tracking) deployed as the Community Edition (CPE cpe:2.3:a:gitlab:gitlab:*:community) and Enterprise Edition (cpe:2.3:a:gitlab:gitlab:*:enterprise). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e. cross-site scripting): user-controllable input is rendered into the GitLab web UI without adequate sanitization or output encoding, allowing attacker-supplied markup/script to execute in the trusted GitLab origin. Because the payload runs inside the victim's authenticated GitLab browser session, the attacker inherits that user's privileges within the application, which is why the CVSS scope is marked Changed (S:C).
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:N/UI:R/S:C/C:H/I:H/A:H
Unauthenticated network XSS needing victim interaction (UI:R) with scope change into the authenticated session; high confidentiality/integrity via session abuse but availability impact is limited (A:L).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
7DescriptionNVD
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.6 before 18.6.3, and 18.7 before 18.7.1 that could have allowed an unauthenticated user to execute arbitrary code in the context of an authenticated user's browser by convincing the legitimate user to visit a specially crafted webpage.
Executive ViewAI
GitLab CE/EE versions before 18.6.3 and 18.7.1 contain a critical cross-site scripting vulnerability enabling attackers to hijack authenticated user sessions through social engineering attacks, potentially granting unauthorized access to repositories, CI/CD pipelines, and stored credentials. All organizations running affected GitLab versions face risk of account compromise and unauthorized repository modifications.
Apply vendor patch: GitLab CE/EE 18.6.3, 18.7.1 and later. Interim mitigations if patch deployment is delayed: enforce strict Content Security Policy (CSP) headers; restrict JavaScript execution in GitLab if operationally feasible; conduct user security awareness training focusing on phishing and malicious link risks; implement enhanced monitoring for unusual authentication patterns and concurrent sessions.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
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
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB