Skip to main content

GitLab CVE-2025-9642

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2025-09-26 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
    Access GitLab injection surface
  2. Delivery
    Store malicious XSS payload
  3. Exploit
    Victim views crafted content
  4. Execution
    Script runs in victim session
  5. Persist
    Steal session/token
  6. Impact
    Take 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).

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

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 19:14 CVSS 8.7

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

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

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.

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

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

4
Analysis Updated
Oct 19, 2026 - 16:27 vuln.today
v2 - CVSS changed
Severity Changed
Oct 19, 2026 - 16:23 NVD
HIGH CRITICAL
CVSS changed
Oct 19, 2026 - 16:23 NVD
8.7 (HIGH) 9.6 (CRITICAL)
CVE Published
Sep 26, 2025 - 09:15 nvd
HIGH 8.7

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Prevalence
High
GitLab 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 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.

Affected Products (CPE)NVD

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:18.4.0:*:*:*:community:*:*:*
cpe:2.3:a:gitlab:gitlab:18.4.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

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