GitLab
CVE-2025-9642
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess GitLab injection surface
-
DeliveryStore malicious XSS payload
-
ExploitVictim views crafted content
-
ExecutionScript runs in victim session
-
PersistSteal session/token
-
ImpactTake over account
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 an attacker to place malicious content into a GitLab surface that renders attacker-controlled input, and then requires a victim user to view that content (CVSS UI:R) for the script to execute in their authenticated session - this user-interaction requirement is the primary limiting factor and precludes fully automated mass exploitation. The scope change (S:C) indicates the payload executes in the victim's browser context, enabling session/token theft and account takeover; impact is greatest when the victim is a privileged user or administrator. The precise prerequisite feature/field for injection is not specified in the description and is not derivable from the provided data (see GitLab issue #566505); while the vendor sets PR:N (unauthenticated), many GitLab content surfaces require at least a low-privilege account to inject, so defenders should confirm whether their exposed injection points are reachable pre-authentication. Affects all versions from 14.10 up to the fixed 18.2.7 / 18.3.3 / 18.4.1 releases. |
| Impact | This is a stored/reflected cross-site scripting flaw (CWE-79) in GitLab CE/EE that can lead to account takeover, carrying a vendor CVSS of 9.6 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H). The CVSS signals point to a serious issue: network vector, low complexity, no privileges, scope change (script executes in a victim's authenticated session), with high confidentiality and integrity impact - consistent with session/credential theft and account takeover. However, these severity signals conflict sharply with exploitation-likelihood signals: the EPSS score is only 0.03% (9th percentile), it is NOT on the CISA KEV list, and no weaponized public exploit is identified. The high score is driven largely by the S:C/C:H/I:H/A:H impact combination typical of how GitLab rates XSS-to-takeover, not by evidence of mass exploitation. Note the vector requires UI:R (user interaction) - a victim must view the attacker-controlled content - which meaningfully limits drive-by mass exploitation and favors targeted abuse. Also note a tension in PR:N: 'injecting malicious content' into most GitLab surfaces (issues, MRs, comments) typically requires at least a low-privilege account, so the vendor's PR:N may reflect an unauthenticated injection surface or may be optimistic - verify the exact injection point with GitLab issue #566505. Overall: a genuinely high-severity, patch-promptly vulnerability for internet-facing GitLab instances, but current real-world exploitation pressure appears low, making it a high-priority patch rather than an emergency zero-day. |
| Exploit ScenarioDerived | An attacker plants malicious content (e.g., a crafted payload in a field rendered by GitLab) so that when a victim user - potentially an administrator - views it, attacker-controlled JavaScript executes in the victim's authenticated GitLab session. The script steals the session/token or performs privileged actions, resulting in account takeover. No public exploit code was identified at the time of analysis, though a HackerOne report (#3297413) underlies the disclosure; exploitation requires the victim to load the malicious content (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Cross-site scripting in GitLab CE/EE allows an attacker who can place crafted content into a rendered surface to execute script in a victim's authenticated session, with account takeover as the stated outcome. All versions from 14.10 through 18.2.6, 18.3.0-18.3.2, and 18.4.0 are affected, with fixes in 18.2.7, 18.3.3, and 18.4.1. The vendor rates this critical (CVSS 9.6, scope-changed XSS requiring victim interaction); EPSS is low at roughly 0.03% and no public exploit code or CISA KEV listing was identified at time of analysis.
Earlier versions of this analysis (1)
An issue has been discovered in GitLab CE/EE affecting all versions from 14.10 before 18.2.7, 18.3 before 18.3.3, and 18.4 before 18.4.1 that could allow an attacker to inject malicious content that. Rated high severity (CVSS 8.7), this vulnerability is remotely exploitable, low attack complexity. No vendor patch available.
RemediationAI
Vendor-released patch: upgrade to GitLab 18.2.7, 18.3.3, or 18.4.1 (or later) depending on your release train, as documented in GitLab issue #566505 and the HackerOne report. There is no configuration toggle that removes the underlying encoding defect, so patching is the only complete fix; in the interim, restrict who can post or edit content on exposed surfaces, review administrator sessions for anomalies, and enforce short session lifetimes and Content Security Policy headers to reduce the value of any injected script. Because the injection point is not publicly specified, teams unable to patch immediately should treat all user-supplied markup fields (issues, comments, snippets, profiles, wiki pages) as untrusted, limit untrusted users' ability to create content, and monitor for suspicious administrative actions; recognize that these are compensating controls with real usability trade-offs rather than fixes. Exploitation requires victim interaction, so phishing-style delivery of crafted links or content to privileged users is the most likely attack path, making admin awareness and phishing-resistant MFA relevant containment measures.
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
The root cause is CWE-79 improper neutralization of user-controlled input in GitLab's web front end, meaning content stored or reflected by the application is rendered to other users without adequate output encoding or sanitization. Because the CVSS scope is changed (S:C), the injected script executes in the victim's browser origin under the GitLab domain rather than in the attacker's context, which is what elevates a scripting bug to account takeover: script running in that origin can read session material, act on the victim's behalf, and reach privileged functionality if the victim is an administrator. The nvd-supplied CPE data identifies both GitLab Community Edition and Enterprise Edition, and the version ranges span the 14.10 baseline through the 18.x releases, so essentially every modern self-managed deployment as well as GitLab.com-style hosted instances required the vendor's coordinated fix. Note the discrepancy between the vendor vector (PR:N) and our assessment (PR:L): while GitLab scored the injection point as reachable without authentication, many GitLab content surfaces require at least a low-privilege account to submit input, and the specific injectable field is not disclosed in the available description or issue reference, so defenders should verify whether their exposed surfaces are reachable pre-authentication.
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
Network XSS with victim interaction (UI:R) and scope change (S:C) to the victim session; PR:L since injecting content into GitLab typically needs a low-privilege account; account takeover yields C:H/I:H, A:L.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
An issue has been discovered in GitLab CE/EE affecting all versions from 14.10 before 18.2.7, 18.3 before 18.3.3, and 18.4 before 18.4.1 that could allow an attacker to inject malicious content that may lead to account takeover.
Executive ViewAI
A critical cross-site scripting vulnerability in GitLab Community and Enterprise Edition (versions 14.10 through 18.2.6, 18.3.0 through 18.3.2, and 18.4.0) lets an attacker who can place crafted content into a rendered surface execute script inside a victim's authenticated session, with the vendor stating account takeover as the outcome. Because GitLab concentrates source code, CI/CD pipelines, and deployment credentials, a single hijacked maintainer or administrator session could expose proprietary code and open a path to supply-chain tampering. No public exploit has been identified at time of analysis, but the vendor's critical rating and the wide affected version range make this an expedited remediation priority for the engineering platform team.
Apply vendor patch. Until upgrades to 18.2.7, 18.3.3, or 18.4.1 are complete, restrict the ability of lower-trust users to place content into rendered surfaces, shorten authenticated session lifetimes, and monitor for anomalous session or account activity.
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)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
GitHub PoC
Exploit-DB