Skip to main content

Gitlab EUVDEUVD-2025-18169

| CVE-2025-4278 HIGH
Basic XSS (CWE-80)
2025-06-12 cve@gitlab.com
8.7
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents elevated real-world risk justified by multiple factors: (1) CVSS 8.7 reflects high severity with network-based attack vector, low complexity, and high confidentiality/integrity impact; (2) The vulnerability requires authenticated access (PR:L) but only low user interaction (UI:R), meaning attackers with valid accounts can socially engineer victim clicks; (3) Scope change (S:C) indicates the impact extends beyond the vulnerable component to account compromise; (4) The account takeover potential (via session hijacking, credential theft, or privilege escalation through injected scripts) represents critical business impact; (5) No availability impact (A:N) suggests DoS is not a factor, but confidentiality and integrity compromise of user accounts is severe. The attack requires user interaction, which slightly reduces exploitability compared to zero-click scenarios, but the authenticated requirement and recent release date (18.0.x is current) suggest active systems are vulnerable. Without confirmed EPSS or KEV data in references, the threat level should be considered high due to searchable, discoverable functionality and straightforward exploitation mechanics.

Exploit ScenarioDerived

An attacker with a valid GitLab account (internal employee, contractor, or compromised account) crafts a malicious search query containing injected HTML/JavaScript payload targeting the new search feature. The attacker then shares a link to a crafted search result or search page with a victim user, perhaps through a comment, message, or social engineering. When the victim clicks the link and the page renders, the injected JavaScript executes in their browser session, within the GitLab application's origin. The script could steal the victim's session token, CSRF token, or perform actions on their behalf (if they have higher privileges). For instance, a payload could exfiltrate the victim's personal access tokens, modify repository settings, create backdoor accounts, or redirect credential entry to a phishing page. The requirement for user interaction (clicking the malicious link) and prior authentication of the attacker slightly reduces exploitability compared to unauthenticated CSRF, but the social engineering aspect and account takeover potential make this a practical attack vector.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 14, 2026

CVE-2025-4278 is an HTML injection vulnerability in GitLab CE/EE versions 18.0.0 through 18.0.1 that allows authenticated attackers to inject malicious HTML through the new search page. Under specific conditions, this vulnerability can escalate to account takeover by leveraging user interaction (UI requirement), with a CVSS score of 8.7 indicating high severity. The vulnerability requires low attack complexity and network accessibility, making it a significant risk for organizations running affected GitLab versions.

Affected VersionsENISA

GitLab 18.0 <18.0.2

Affected Packages

euvd gitlab fix: 18.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability is rooted in CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page), which occurs when user-supplied input is not properly sanitized before being rendered in HTML context. In GitLab's new search page functionality, inadequate input validation allows attackers to inject arbitrary HTML/JavaScript payloads. The vulnerability exists in the search parameter processing logic of GitLab CE/EE (CPE identifiers: cpe:2.3:a:gitlab:gitlab:* versions 18.0.0-18.0.1). The root cause stems from insufficient output encoding or input validation in the search feature's rendering pipeline, enabling stored or reflected HTML injection that executes in the victim's browser session within the GitLab application context.

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 8.7 HIGH
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Ubuntu MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 12, 2025 - 10:16 nvd
HIGH 8.7

DescriptionCVE.org

An issue has been discovered in GitLab CE/EE affecting all versions starting with 18.0 before 18.0.2. Under certain conditions html injection in new search page could lead to account takeover.

Executive ViewAI

Why It Matters

A critical vulnerability in GitLab versions 18.0-18.0.1 allows attackers to inject malicious code through the search functionality, potentially enabling account takeover of any user on affected instances. Organizations running these GitLab versions face immediate risk of unauthorized access to source code, CI/CD pipelines, and sensitive project data.

Recommended Action

Within 24 hours: Identify all GitLab instances running versions 18.0.0 or 18.0.1 and isolate them from production workflows if possible; communicate with development teams to avoid the new search feature. Within 7 days: Upgrade to GitLab 18.0.2 or later when available; if unavailable, implement WAF rules to block search parameter injection and restrict search functionality to authenticated users only. Within 30 days: Conduct audit logs review for suspicious search activity and account access patterns; verify no unauthorized accounts were created; perform security awareness training on phishing risks related to injected content.

Business Impact: High
Compensating Controls

Until patch availability: Disable or restrict access to the new search page feature via reverse proxy/WAF; implement strict input validation and output encoding rules for search parameters; enable enhanced audit logging for all search and authentication events; consider restricting GitLab access to VPN/corporate networks only; educate users not to click suspicious links appearing in search results; monitor for unusual login attempts and session creation.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
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
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

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

Ubuntu

Priority: Medium
gitlab
Release Status Version
xenial ignored -
jammy DNE -
noble DNE -
oracular DNE -
plucky DNE -
upstream needs-triage -

Debian

gitlab
Release Status Fixed Version Urgency
sid fixed 17.6.5-19 -
(unstable) not-affected - -

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