CVE-2021-39878
GitLab vulnerability analysis and mitigation

Overview

A stored Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the Jira integration feature of GitLab versions 13.0 up to 14.3.1. The vulnerability, identified as CVE-2021-39878, was disclosed on September 30, 2021, and allowed attackers to execute arbitrary JavaScript code (GitLab Release, CVE Mitre).

Technical details

The vulnerability was rated as medium severity with a CVSS score of 5.8 (CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N). The issue stemmed from improper validation of the return_to parameter in the Jira Connect users controller, where the value was directly used as a link without proper sanitization (GitLab Release).

Impact

When exploited, this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of other users' browsers, potentially leading to session hijacking, data theft, or other malicious actions (GitLab Release).

Mitigation and workarounds

The vulnerability was patched in GitLab versions 14.3.1, 14.2.5, and 14.1.7. Users were strongly recommended to upgrade their GitLab installations to one of these versions immediately (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-7449MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2024-9183MEDIUM6.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
NoYesDec 05, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025

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