CVE-2021-39881
GitLab vulnerability analysis and mitigation

Overview

In all versions of GitLab CE/EE since version 7.7, a vulnerability was discovered that allows malicious users to create OAuth client applications with arbitrary scope names. This vulnerability (CVE-2021-39881) was disclosed on October 5, 2021, affecting both GitLab Community Edition (CE) and Enterprise Edition (EE) installations (NVD, GitLab Release).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 3.5 (LOW) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N. The issue stems from improper validation of OAuth scope names during the creation of OAuth client applications, which could allow attackers to define custom scope names and descriptions (NVD).

Impact

The vulnerability allows malicious users to trick unsuspecting users into authorizing malicious client applications by using spoofed scope names and descriptions. This social engineering vector could lead to users granting permissions to malicious applications under false pretenses (GitLab Release).

Mitigation and workarounds

The vulnerability has been fixed in GitLab versions 14.3.1, 14.2.5, and 14.1.7. Users are strongly recommended to upgrade to these or later versions to mitigate the risk. The fix includes proper validation of OAuth scope names during application creation (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-8405HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12029HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-11984MEDIUM6.8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-4097MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12734LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 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