# CVE-2021-22185: Insufficient input sanitization in wikis in GitLab version 13.8 and up allows an attacker to exploit a stored cross-site scripting vulnerab…

- Severity: Medium 5.4 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-03-24T16:39:21.000Z
- Modified: 2026-09-08T08:48:23.093Z
- Also known as: BIT-GITLAB-2021-22185
- Weaknesses: CWE-79
- Assigned by: GitLab

## 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

(As written by CVE List.)

## Affected

- GitLab GitLab: >=13.8, <13.8.5; >=13.9, <13.9.2; from 13.8.0 before 13.8.5; from 13.9.0 before 13.9.2
- gitlab (Bitnami): from 13.8.0 before 13.8.5; from 13.9.0 before 13.9.2

## Every score

- GitLab: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://gitlab.com/gitlab-org/gitlab/-/issues/299143> (broken-link, web)
- <https://hackerone.com/reports/1087061> (advisory, permissions-required, third-party-advisory)
- <https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22185.json> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22185> (web)

## Sources

- CVE List: [CVE-2021-22185](https://www.cve.org/CVERecord?id=CVE-2021-22185), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22185](https://nvd.nist.gov/vuln/detail/CVE-2021-22185), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2021-22185](https://osv.dev/vulnerability/BIT-GITLAB-2021-22185), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-22185 · Whole record: https://cve.day/CVE-2021-22185.json · Rebuilt by cve.day 2026-11-25T22:58:00.408Z
