GitLab CE/EE
CVE-2025-8405
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege authenticated GitLab access
-
DeliveryInject malicious HTML into vulnerability code flow display
-
ExploitWait for higher-privileged user to view finding
-
ExecutionInjected markup executes in victim session
-
ImpactPerform 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
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.
Primary rating from Vendor (gitlab).
CVSS VectorVendor: gitlab
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
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.
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
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
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