CVE-2022-4007
GitLab vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in GitLab CE/EE affecting all versions from 15.3 prior to 15.7.8, version 15.8 prior to 15.8.4, and version 15.9 prior to 15.9.2. The vulnerability was found in the title field of work items that allowed attackers to perform arbitrary actions on behalf of victims at client side (GitLab Release, CVE Details).

Technical details

The vulnerability exists due to improper handling of clipboard contents in the title field of work items, specifically in the work/items/components/item_title.vue component. The contenteditable attribute allows data- attributes while pasting HTML contents, enabling malicious clipboard contents to insert arbitrary data- attributes including data-method or data-url. Since ActionView uses data- attributes to control HTML element behavior, malicious HTML contents with a data-method attribute can execute arbitrary JavaScript on GitLab. The vulnerability has been assigned a medium severity rating with a CVSS score of 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) (GitLab Release).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript on the victim's browser and perform any actions on behalf of the user. The cross-site scripting attack could lead to unauthorized actions and potential data exposure within the GitLab instance (GitLab Issue).

Mitigation and workarounds

The vulnerability has been patched in GitLab versions 15.7.8, 15.8.4, and 15.9.2. Users are strongly recommended to upgrade their GitLab installations to one of these patched versions immediately. GitLab.com has already been updated with the security fix (GitLab Release).

Community reactions

The vulnerability was responsibly disclosed through GitLab's HackerOne bug bounty program by security researcher ryotak. GitLab addressed the issue promptly and included it in their security release along with other 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-2025-9222HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13761HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13772HIGH7.1
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13781MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-3950LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 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