CVE-2021-22261: GitLab - Stored Cross-Site Scripting
- Cve: CVE-2021-22261
- Name: GitLab - Stored Cross-Site Scripting
- Description: A stored Cross-Site Scripting vulnerability in the Jira integration in all GitLab versions starting from 13.9 before 14.0.9, all versions starting from 14.1 before 14.1.4, and all versions starting from 14.2 before 14.2.2 allows an attacker to execute arbitrary JavaScript code on the victim's behalf via malicious Jira API responses
- Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking, data theft, or further malicious actions.
- Remediation: Update to GitLab 14.0.9, 14.1.4, or 14.2.2 or later versions.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00982
- Epss percentile: 0.63171
- Assignee: [email protected]
- Published at: 2021-10-05T14:15:07Z
- Age in days: 1876
- Modified at: 2026-06-17T03:36:54Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22261
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22261.json | nvd | Vendor Advisory |
| https://hackerone.com/reports/1132083 | nvd | Permissions Required, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gitlab:gitlab | >= 14.2.0, < 14.2.2; >= 14.1.0, < 14.1.4; >= 13.9.0, < 14.0.9 | no | nvd | /v1/products/gitlab/gitlab |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 66493
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports