Skip to main content

GitLab CVE-2025-13761

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-01-09 cve@gitlab.com
9.6
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify logged-in GitLab user
  2. Delivery
    Deliver crafted webpage link
  3. Exploit
    Victim visits page, XSS fires
  4. Execution
    Script runs in GitLab session
  5. Persist
    Steal session/act as user
  6. Impact
    Repo 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 04:09 cvss changed CVSS 9.6

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.

v3 Jun 30, 2026 - 04:08 cvss changed CVSS 9.6

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.

v2 Jun 30, 2026 - 04:07 cvss changed CVSS 9.6

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.

v1 Mar 12, 2026 - 21:54 CVSS 8.0

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

NVD PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 9.6 CRITICAL

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

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:L/SI:L/SA:N
Red Hat 8.0 HIGH

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 04:09 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:09 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:08 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:07 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
HIGH CRITICAL
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.0 (HIGH) 9.6 (CRITICAL)
CVE Published
Jan 09, 2026 - 10:15 nvd
HIGH 8.0

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 88% exploitable
Prevalence
High
widely deployed enterprise DevOps platform across many organizations
Data Quality
5 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
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.

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

cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:18.7.0:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:18.7.0:*:*:*:enterprise:*:*:*

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

Vendor StatusVendor

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