CVE-2024-4835
GitLab vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability, identified as CVE-2024-4835, was discovered in GitLab affecting versions 15.11 before 16.10.6, 16.11 before 16.11.3, and 17.0 before 17.0.1. The vulnerability was reported through GitLab's HackerOne bug bounty program and was patched on May 22, 2024. This high-severity vulnerability (CVSS score 8.0) exists within the VS code editor (Web IDE) component of GitLab (GitLab Release, Security Online).

Technical details

The vulnerability exists in the webWorkerExtensionHostIframe.html file, which is responsible for running VS Code extensions and communicates with its parent window via postMessages. The security flaw stems from improper validation of message origins in the iframe, allowing malicious sites to interact with the extension host as if it were the legitimate web IDE. This enables attackers to load arbitrary JavaScript files as extensions, leading to code execution in the gitlab.com origin. The vulnerability received a CVSS score of 8.0 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N) (GitLab Release).

Impact

The vulnerability allows attackers to craft malicious pages that can exfiltrate sensitive user information and potentially lead to full account takeover. When exploited successfully, attackers could gain unauthorized access to victim accounts with just a single click from the target user, including the ability to create malicious API tokens (Security Online).

Exploitability

The vulnerability can be exploited by creating a malicious page that includes the webWorkerExtensionHostIframe.html file in an iframe. The attacker can then send crafted messages to load arbitrary JavaScript code, effectively bypassing origin validation. The attack requires user interaction but can be executed with a single click from the victim (GitLab Issue).

Mitigation and workarounds

GitLab has released security patches in versions 17.0.1, 16.11.3, and 16.10.6 for both Community Edition (CE) and Enterprise Edition (EE). Organizations running affected versions are strongly advised to upgrade to the latest patched version immediately. GitLab.com has already been updated with the necessary security fixes (GitLab Release).

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-16553MEDIUM5.4
  • GitLab logoGitLab
  • gitlab
NoYesJul 29, 2026
CVE-2026-6336MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-rails-ce-fips-18.7
NoYesJul 29, 2026
CVE-2026-6267MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-rails-ce-18.8
NoYesJul 29, 2026
CVE-2026-3093MEDIUM4.7
  • GitLab logoGitLab
  • gitlab-workhorse-ce-18.11
NoYesJul 29, 2026
CVE-2026-4672MEDIUM4.3
  • GitLab logoGitLab
  • gitlab-workhorse-ce-18.9
NoYesJul 29, 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