Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious external script payload
-
DeliveryDeliver crafted Swagger UI link to victim
-
ExploitVictim with active session opens link
-
ExecutionInjected script executes in victim context
-
ImpactPerform 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
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).
Primary rating from Vendor (gitlab).
CVSS VectorVendor: gitlab
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
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.
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
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.
Affected Products (CPE)CVE.org
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
GitHub PoC
Exploit-DB