CVE-2021-39885: GitLab EE - Stored XSS
- Cve: CVE-2021-39885
- Name: GitLab EE - Stored XSS
- Description: A Stored XSS in merge request creation page in all versions of Gitlab EE starting from 13.7 before 14.1.7, all versions starting from 14.2 before 14.2.5, and all versions starting from 14.3 before 14.3.1 allows an attacker to execute arbitrary JavaScript code on the victim's behalf via malicious approval rule names
- Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking or malicious actions.
- Remediation: Update to version 14.1.8, 14.2.6, or later versions where the issue is fixed.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to create malicious approval rules
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01134
- Epss percentile: 0.67153
- Assignee: [email protected]
- Published at: 2021-10-04T17:15:08Z
- Age in days: 1877
- Modified at: 2026-06-17T04:04:21Z
- Patch available: yes
- Public exploits total: 2
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39885
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://gitlab.com/gitlab-org/gitlab/-/issues/341140 | nvd | 2021-10-04 |
| https://hackerone.com/reports/1342009 | nvd | 2021-10-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json | Vendor Advisory |
| https://gitlab.com/gitlab-org/gitlab/-/issues/341140 | Exploit, Issue Tracking, Vendor Advisory |
| https://hackerone.com/reports/1342009 | Exploit, Permissions Required, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gitlab:gitlab | = 14.3.0; >= 14.2.0, < 14.2.5; >= 13.7.0, < 14.1.7 | no | nvd | /v1/products/gitlab/gitlab |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2021-10-04
- Remote: yes
- Authentication required: yes
- Exposed hosts: 66493
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports