What’s Vulnerable › Vulnerabilities
CVE-2021-22185
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-24 · updated 2026-06-17
- Weakness: CWE-79
Description
Insufficient input sanitization in wikis in GitLab version 13.8 and up allows an attacker to exploit a stored cross-site scripting vulnerability via a specially-crafted commit to a wiki
Affected products
- GitLab: from 13.8.0 before 13.8.5; from 13.9.0 before 13.9.2 — fixed in 13.8.5, 13.9.2
How to fix
Upgrade to a fixed version: GitLab 13.8.5, 13.9.2. Check the vendor advisory for mitigations.
References
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22185.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/299143
- https://hackerone.com/reports/1087061
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22185.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/299143
- https://hackerone.com/reports/1087061
Get alerted when CVE-2021-22185 or the next vulnerability affects your stack