Skip to main content

GitLab CE/EE CVE-2025-8405

HIGH
Improper Encoding or Escaping of Output (CWE-116)
2025-12-11 cve@gitlab.com
7.7
CVSS 3.1 · Vendor: gitlab
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege authenticated GitLab access
  2. Delivery
    Inject malicious HTML into vulnerability code flow display
  3. Exploit
    Wait for higher-privileged user to view finding
  4. Execution
    Injected markup executes in victim session
  5. Impact
    Perform unauthorized actions on victim's behalf

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
Exploitation Conditions

Exploitation requires the attacker to hold an authenticated, low-privilege GitLab account (PR:L) with the ability to write into a project's vulnerability findings, and specifically to inject malicious HTML into the vulnerability code flow display component. The attack is not self-contained: a second (victim) user must actively view the attacker-controlled vulnerability finding for the injected HTML to trigger (UI:R), and the vendor's high attack complexity rating (AC:H) implies additional non-trivial conditions must align. Limiting factors that reduce realistic risk: mandatory authentication, dependence on a victim viewing the malicious content, and the specific requirement that the GitLab instance expose the vulnerability code flow display feature (typically tied to GitLab's security/vulnerability scanning functionality, more common in Ultimate/EE tiers). Affected deployments are GitLab CE/EE versions 17.1 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2.

Impact

This is a genuine but not top-tier priority. The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N, score 7.7 High) describes a network-reachable but condition-dependent attack: it requires an authenticated low-privilege account (PR:L), high attack complexity (AC:H), and victim interaction (UI:R) - a victim must view the attacker's injected content. The scope change (S:C) and C:H/I:H reflect that injected HTML lets one authenticated user act on behalf of other, potentially higher-privileged users. Supporting signals tilt toward moderate rather than urgent risk: EPSS is only 0.52% (42nd percentile), the CVE is NOT listed in CISA KEV, and there is no confirmed public exploit code. A HackerOne report (3270940) is referenced, indicating the issue was responsibly disclosed via bug bounty, but disclosure of a report link does not confirm weaponized exploit code is public. No SSVC decision data was provided in the input. The signals are internally consistent - a high-complexity, interaction-and-authentication-gated stored-injection flaw - so this reads as a real issue worth patching on a normal cadence, not an emergency. Note: the input Tag 'Authentication Bypass' conflicts with the description and CWE-116 (improper output encoding); this is not an auth-bypass bug and the tag appears mislabeled.

Exploit ScenarioDerived

An authenticated low-privilege GitLab user injects malicious HTML into a vulnerability code flow display within a project. When another user - potentially a maintainer or admin - views that vulnerability finding, the injected markup executes in their session and performs unauthorized actions on their behalf. No confirmed public exploit code was identified, though the issue was disclosed via HackerOne report 3270940, and the high attack complexity plus required victim interaction limit opportunistic mass exploitation.

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

Stored HTML injection in GitLab CE/EE's vulnerability code flow display lets an authenticated low-privilege user act on behalf of other users - including those with higher privileges - by planting malicious markup inside a project's vulnerability findings. The bug affects all GitLab Community and Enterprise editions from 17.1 up to (but not including) 18.4.6, 18.5.4, and 18.6.2, and requires a victim to view the poisoned finding (UI:R) with a scope change (S:C) that pushes impact beyond the vulnerable component. EPSS is low at 0.52% (42nd percentile) and no public exploit code has been identified at time of analysis; it is not in CISA KEV, so this is a genuine but not top-tier priority relative to remotely exploitable unauthenticated issues.

RemediationAI

Vendor-released patches are available: upgrade GitLab CE/EE to 18.6.2 for the 18.6 line, 18.5.4 for the 18.5 line, or 18.4.6 for the 18.4 and earlier supported branches, per the advisory at https://about.gitlab.com/releases/2025/12/10/patch-release-gitlab-18-6-2-released/. Applying the upgrade is the only complete fix, since the defect is in the rendering/escaping path of the vulnerability code flow component and cannot be fully neutralized by configuration. If immediate patching is not possible, compensate by restricting who can create or modify vulnerability findings in projects - tighten Developer/Maintainer role assignments and, where policy allows, disable external security report ingestion (CI security artifact uploads) so untrusted users cannot seed the findings that carry the injected markup; the trade-off is loss of automated SAST/DAST visibility for those projects. Additionally, because exploitation requires a victim to open the affected finding (UI:R), you can reduce the blast radius by auditing and pruning suspicious vulnerability records, limiting who can view untrusted projects' security dashboards, and rotating session credentials for users who may have viewed attacker-controlled findings - accepting slower triage workflows as the cost. Review the engineering record at https://gitlab.com/gitlab-org/gitlab/-/issues/558214 and the HackerOne report at https://hackerone.com/reports/3270940 for any additional vendor-suggested hardening.

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 class is CWE-116 (Improper Encoding or Escaping of Output): the vulnerability code flow display - the UI component that renders source-code context around findings surfaced by GitLab's security scanning integrations, notably in Ultimate/EE tiers - fails to properly encode or sanitize attacker-controlled strings before emitting them into HTML. GitLab's advisory (patch release 18.6.2, tracked as issue 558214 and HackerOne report 3270940) frames this as an HTML injection that enables unauthorized actions on behalf of other users. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N describes a network-reachable flaw with high attack complexity, requiring a low-privileged authenticated account, and dependent on a second user's interaction. The scope-change metric (S:C) is significant: a successful injection escapes the vulnerable component's own security authority and reaches the surrounding GitLab session context, which is why confidentiality and integrity are rated High while availability is None. CPE data confirms both the community and enterprise GitLab packages are in scope, meaning the CE distribution carries the same vulnerable rendering path even where the vulnerability-scanning features that feed it are less commonly used.

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 7.7 HIGH
AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 7.7 HIGH

Authenticated low-privilege attacker (PR:L) injects HTML that requires a victim to view it (UI:R) and executes in the victim's context (S:C, C:H/I:H); high complexity (AC:H) and no availability impact.

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

Primary rating from Vendor (gitlab).

CVSS VectorVendor: gitlab

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

DescriptionCVE.org

GitLab has remediated a security issue in GitLab CE/EE affecting all versions from 17.1 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2 that could have allowed an authenticated user to perform unauthorized actions on behalf of other users by injecting malicious HTML into vulnerability code flow displays.

Executive ViewAI

Why It Matters

A stored HTML injection flaw in GitLab CE/EE (CVE-2025-8405, CVSS 7.7) allows a low-privilege account holder to plant malicious markup inside a project's vulnerability findings, which then executes on behalf of any user who opens the poisoned record - including users with greater privileges than the attacker. Because GitLab is typically the system of record for source code, CI/CD pipelines, and secrets across the engineering organization, a successful abuse of this flaw can undermine trust in the platform and turn ordinary review activity by developers and administrators into an attack vector. No public exploit code has been identified at time of analysis and the flaw is not in CISA KEV, so this is a genuine but secondary priority relative to unauthenticated remote issues; leadership should nevertheless direct GitLab owners to confirm exposure and lock down untrusted account access.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: constrain creation and editing of vulnerability findings to a small, trusted set of maintainers; revoke or downgrade standing access for external collaborators and low-privilege accounts; limit who can view vulnerability reports and security dashboards; require user interaction - the described attack path requires a victim to open the poisoned finding, so awareness guidance to administrators and maintainers reduces exposure; monitor and alert on unexpected modification of vulnerability objects and on outbound requests or content originating from GitLab pages.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
High
GitLab CE/EE is widely deployed enterprise DevOps/source-control software
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
High

Priority Score

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

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