VYPR
Unrated severityNVD Advisory· Published Nov 9, 2022· Updated May 1, 2025

CVE-2022-3265

CVE-2022-3265

Description

A cross-site scripting issue has been discovered in GitLab CE/EE affecting all versions prior to 15.3.5, 15.4 prior to 15.4.4, and 15.5 prior to 15.5.2. It was possible to exploit a vulnerability in setting the labels colour feature which could lead to a stored XSS that allowed attackers to perform arbitrary actions on behalf of victims at client side.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Stored XSS in GitLab labels colour feature via scoped labels allows attackers to perform arbitrary client-side actions.

Vulnerability

A stored cross-site scripting (XSS) vulnerability exists in GitLab CE/EE in the labels colour feature, specifically affecting scoped labels (labels with a :: prefix). This is a bypass of a prior fix (HackerOne report #1665658) that addressed XSS via regular labels. All versions prior to 15.3.5, 15.4.4, and 15.5.2 are affected [1]. The vulnerability allows an attacker to inject arbitrary HTML/JavaScript into the label color field, which is later rendered unsanitized in the user interface.

Exploitation

An attacker must have the ability to create or edit labels on a project (typically maintainer or owner role). Using the GitLab API (e.g., with a personal access token scoped to api), the attacker can set a label’s color to a payload such as "> for scoped labels like attack::label. When a victim views any project page that displays that label (e.g., an issue or merge request), the XSS payload executes in the victim’s browser context [1]. No user interaction beyond viewing the page is required.

Impact

Successful exploitation results in stored XSS, allowing the attacker to execute arbitrary JavaScript in the victim’s session. This can lead to theft of session cookies, CSRF tokens, or perform actions on behalf of the victim, such as modifying project settings, creating issues, or exfiltrating sensitive data [1]. The attack runs on the victim’s client side and can bypass Content Security Policy (CSP) as noted in the report.

Mitigation

GitLab has addressed this vulnerability in versions 15.3.5, 15.4.4, and 15.5.2 (released September 2022) by properly sanitizing label color inputs for scoped labels [1]. Users should upgrade to one of these fixed versions immediately. No workaround is available; enabling CSP alone is insufficient as the XSS payload is able to bypass it. GitLab does not list this CVE in CISA KEV.

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.