CVE-2025-8405
GitLab vulnerability analysis and mitigation

Overview

CVE-2025-8405 is an improper encoding vulnerability in GitLab CE/EE's vulnerability report displays that allows an authenticated attacker to inject malicious HTML into vulnerability code flow interfaces, potentially enabling unauthorized actions on behalf of other users. It affects all GitLab CE/EE versions from 17.1 before 18.4.6, 18.5 before 18.5.4, and 18.6 before 18.6.2. The vulnerability was disclosed on December 10–11, 2025, when GitLab released patched versions. It carries a CVSS v3.1 base score of 7.7 (High) per NVD, and 8.7 (High) per ENISA's scoring (GitLab Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-116 (Improper Encoding or Escaping of Output): GitLab fails to properly encode or escape user-controlled content rendered in vulnerability code flow displays within the security dashboard. An authenticated, low-privileged attacker can craft malicious HTML and inject it into these displays; when another user views the affected vulnerability report, the injected HTML is rendered in their browser context, potentially enabling cross-site scripting-style attacks. Exploitation requires network access, high attack complexity, low privileges, and victim user interaction, with a changed scope indicating impact beyond the vulnerable component. The vulnerability was reported through HackerOne by researcher yvvdwf (GitLab Advisory).

Impact

Successful exploitation can result in high confidentiality and integrity impact against other users, as the attacker can perform unauthorized actions on their behalf — such as session hijacking, credential theft, or account takeover — by leveraging the injected HTML rendered in victims' browsers. Availability is not directly impacted. The changed scope means the attack can affect users and resources beyond the attacker's own GitLab account, potentially enabling lateral movement within an organization's GitLab environment (GitLab Advisory, Red Hat CVE).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation (Feedly). The EPSS score is approximately 0.01% (0.0001), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an authenticated user account and victim interaction, which raises the bar for opportunistic attacks.

Exploitation steps

  1. Reconnaissance: Identify a GitLab CE/EE instance running a vulnerable version (17.1 through 18.4.5, 18.5.0–18.5.3, or 18.6.0–18.6.1) with the security dashboard / vulnerability management feature enabled.
  2. Authenticate: Log in to the GitLab instance with any low-privileged user account that has access to a project with vulnerability reports.
  3. Inject malicious HTML: Craft a payload containing malicious HTML (e.g., a <script> tag or event handler) and introduce it into a field that is rendered in the vulnerability code flow display — such as a vulnerability description or code snippet field that is not properly encoded.
  4. Trigger victim rendering: Induce a target user (e.g., a project maintainer or security team member) to view the affected vulnerability report page, causing the injected HTML to execute in their browser context.
  5. Achieve unauthorized actions: The executed payload can steal session cookies, perform actions on behalf of the victim (e.g., modifying project settings, exfiltrating data), or redirect the victim to a malicious site (GitLab Advisory).

Indicators of compromise

  • Network: Unusual HTTP requests to GitLab vulnerability report or security dashboard endpoints containing encoded HTML tags (e.g., %3Cscript%3E, %3Cimg, onerror=) in parameters; unexpected outbound connections from victim browsers to attacker-controlled infrastructure after viewing vulnerability reports.
  • Logs: GitLab application logs showing access to vulnerability code flow display pages by multiple users shortly after a low-privileged user modified related content; browser console errors related to unexpected script execution on security dashboard pages.
  • File System / Session: Unexpected session tokens or cookies being transmitted to external hosts; new or modified GitLab user settings (SSH keys, email addresses, access tokens) not initiated by the account owner, indicating session hijacking.
  • Process/Behavior: Anomalous API calls (e.g., token creation, permission changes) originating from accounts that do not typically perform such actions, particularly following access to vulnerability report pages.

Mitigation and workarounds

GitLab has released patched versions on December 10, 2025: 18.4.6, 18.5.4, and 18.6.2 for both CE and EE. All self-managed GitLab installations running affected versions should upgrade immediately. GitLab.com was already patched at time of release; GitLab Dedicated customers do not need to take action. No configuration-based workaround is documented — upgrading to a fixed version is the only recommended remediation (GitLab Advisory).

Community reactions

The vulnerability was covered by several cybersecurity news outlets including CyberSecurityNews and eSecurity Planet as part of broader coverage of the December 2025 GitLab patch release, which addressed multiple high-severity issues simultaneously. Heise.de and The Hacker News also referenced the patch release in their weekly security recaps. The Belgian Centre for Cybersecurity (CCB) and Spain's CCN-CERT issued advisories recommending immediate upgrades. Community reaction was moderate, with the vulnerability noted as part of a significant patch batch rather than singled out as a standalone critical issue (CyberSecurityNews, GitLab Advisory).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-19228HIGH8.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-16494HIGH7.1
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-6821MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-4879MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-18433MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management