Skip to main content

GitLab CVE-2025-12029

HIGH
Cross-site Scripting (XSS) (CWE-79)
2025-12-11 cve@gitlab.com
8.0
CVSS 3.1 · Vendor: gitlab
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious external script payload
  2. Delivery
    Deliver crafted Swagger UI link to victim
  3. Exploit
    Victim with active session opens link
  4. Execution
    Injected script executes in victim context
  5. Impact
    Perform unauthorized actions as victim

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 the GitLab Swagger UI (API documentation interface) to be reachable, and the attacker must inject malicious external scripts into it so they execute in a victim's browser. The CVSS vector (UI:R) confirms the victim must be lured into a specific interaction, such as opening a crafted link, so there is no silent server-side compromise. AC:H confirms additional conditions beyond attacker control must be met for the injection to succeed ('under certain circumstances' per the vendor), limiting reliability. While the attacker needs no authentication (PR:N), the impact is bounded to actions performed on behalf of an already-authenticated victim user, so the practical risk is highest where many authenticated users can be socially engineered.

Impact

This is a cross-site scripting (CWE-79) vulnerability in GitLab CE/EE's Swagger UI, and the signals point to a genuine but conditional priority rather than an emergency. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N, score 8.0) describes a network-reachable, unauthenticated (PR:N) flaw that nonetheless demands both user interaction (UI:R) and high attack complexity (AC:H), with a scope change (S:C) reflecting that injected scripts execute in a victim's authenticated browser context to act on their behalf. EPSS is low at 0.53% (43rd percentile), and the CVE is NOT on CISA KEV, so there is no confirmed active exploitation. A HackerOne report (#3317485) is referenced, indicating responsible disclosure, but no public exploit code is identified. The signals are internally consistent: high CVSS driven by scope change and confidentiality/integrity impact, tempered by AC:H and UI:R, which the low EPSS corroborates - real exploitation requires luring a target into a crafted interaction rather than mass unauthenticated spraying. Net: patch on a normal-to-expedited cycle given GitLab's exposure and the high base score, but this is not drop-everything KEV-tier.

Exploit ScenarioDerived

An attacker crafts a malicious link or input that injects an external script into the GitLab Swagger UI page, then entices an authenticated GitLab user to open it. When the victim loads the page, the injected script executes in their session and performs unauthorized actions on their behalf. No public proof-of-concept is identified, and the high attack complexity means specific conditions must align for the injection to succeed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 14, 2026

Cross-site scripting in GitLab CE/EE's Swagger UI allows unauthenticated attackers to inject malicious external scripts that execute in an authenticated victim's browser when the victim opens a crafted link, potentially performing unauthorized actions on the victim's behalf. The flaw affects GitLab CE/EE all versions from 15.11 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2. No public exploit identified at time of analysis; EPSS is 0.53% (43rd percentile), and no CISA KEV entry was provided, making this a conditional priority rather than an emergency.

RemediationAI

Vendor-released patches are GitLab CE/EE 18.4.6, 18.5.4, and 18.6.2 for the respective release lines; upgrade to the fixed version that matches your deployed branch. If immediate upgrade is not possible, restrict access to the Swagger UI/API documentation interface to trusted networks or authenticated administrators using reverse-proxy rules or firewall controls, noting that this can break legitimate API documentation workflows. Enforce a strict Content Security Policy that blocks inline and untrusted external scripts as a compensating control, but test that it does not impair Swagger UI functionality. Monitor the GitLab advisory at https://about.gitlab.com/releases/2025/12/10/patch-release-gitlab-18-6-2-released/ and the issue at https://gitlab.com/gitlab-org/gitlab/-/issues/577975 for updates.

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

This is a CWE-79 cross-site scripting issue in GitLab's Swagger UI, the API documentation interface. The CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N vector indicates network-reachable exploitation, high attack complexity, no privileges required, required user interaction, scope change, and high confidentiality and integrity impact with no availability impact. The root cause is improper neutralization of input during web page generation, allowing malicious external scripts to be injected into Swagger UI and executed in a victim's browser context. CPE data confirms both GitLab Community Edition and Enterprise Edition are affected, matching the vendor description. The high attack complexity and user-interaction requirement mean exploitation depends on conditions beyond the attacker's control, such as the victim opening a crafted link and the injection succeeding under certain circumstances.

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

Vendor (gitlab) PRIMARY 8.0 HIGH
AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.0 HIGH

Network-reachable XSS needs no attacker auth (PR:N) but requires victim interaction (UI:R) and specific 'certain circumstances' (AC:H); script runs in victim's authenticated context (S:C, C:H/I:H, A:N).

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

Primary rating from Vendor (gitlab).

CVSS VectorVendor: gitlab

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

DescriptionCVE.org

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 15.11 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2 that could have, under certain circumstances, allowed an unauthenticated user to perform unauthorized actions on behalf of another user by injecting malicious external scripts into the Swagger UI."

Executive ViewAI

Why It Matters

A high-severity cross-site scripting flaw in GitLab CE/EE affects every release from 15.11 through 18.4.5, 18.5.3, and 18.6.1, allowing an attacker to run malicious script inside a logged-in user's browser session if that user opens a crafted link. Because GitLab typically hosts proprietary source code, CI/CD pipelines, and access tokens, a compromised developer or administrator session could translate into unauthorized code changes, pipeline tampering, or data exposure across the organization. Exploitation is not currently widespread - no public exploit code has been identified and adoption likelihood is low - so this is a scheduled remediation priority rather than an emergency, but leadership should still track it given the breadth of affected versions and the value of the accounts at risk.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: block or disable the Swagger UI paths at the reverse proxy/WAF, restrict GitLab access to trusted networks or VPN, enforce a restrictive Content-Security-Policy, monitor and alert on Swagger UI access in GitLab logs, rotate or re-authenticate privileged sessions, and remind users not to open unsolicited links.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
GitLab CE/EE is widely deployed enterprise DevOps platform across many organizations
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +40
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:*:*:*:*: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

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