Wiz Agents & Workflows are here

CVE-2024-4901
GitLab vulnerability analysis and mitigation

Overview

A stored XSS vulnerability (CVE-2024-4901) was discovered in GitLab CE/EE affecting all versions starting from 16.9 prior to 16.11.5, starting from 17.0 prior to 17.0.3, and starting from 17.1 prior to 17.1.1. The vulnerability allows malicious commit notes to be imported from a project, potentially leading to cross-site scripting attacks (GitLab Release, CVE Mitre).

Technical details

The vulnerability stems from improper handling of text content in commit notes. The code vulnerability involves using the text() function to get content of a p element and then injecting the content using the html function, which allows conversion of script tags leading to XSS. The issue has been assigned a CVSS score of 8.7 (High severity) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N (GitLab Release, GitLab Issue).

Impact

The stored XSS vulnerability allows attackers to execute arbitrary actions on behalf of victims at the client side, with the ability to bypass Content Security Policy (CSP). This could potentially lead to unauthorized access and manipulation of user data within the GitLab instance (GitLab Issue).

Mitigation and workarounds

GitLab has patched this vulnerability in versions 16.11.5, 17.0.3, and 17.1.1. Users are strongly recommended to upgrade their GitLab installations to one of these patched versions immediately. GitLab.com has already been updated with the patched version (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-2370HIGH8.8
  • GitLabGitLab
  • gitlab
NoYesMar 30, 2026
CVE-2026-3857HIGH8.8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesMar 25, 2026
CVE-2026-3988HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
NoYesMar 25, 2026
CVE-2026-2995MEDIUM5.4
  • GitLabGitLab
  • gitlab
NoYesMar 25, 2026
CVE-2026-2973MEDIUM5.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesMar 25, 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