# CVE-2021-39885: 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…

- Severity: High 8.7 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/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): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-10-04T16:33:54.000Z
- Modified: 2026-09-10T16:01:32.941Z
- Also known as: BIT-GITLAB-2021-39885
- Weaknesses: CWE-79
- Assigned by: GitLab

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

(As written by CVE List.)

## Affected

- GitLab GitLab: >=13.7, <14.1.7; >=14.2, <14.2.5; >=14.3, <14.3.1; from 13.7.0 before 14.1.7; from 14.2.0 before 14.2.5; 14.3.0
- gitlab (Bitnami): from 13.7.0 before 14.1.7; from 14.2.0 before 14.2.5; from 14.3.0 before 14.3.1

## Every score

- GitLab: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/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 High

## References

- <https://gitlab.com/gitlab-org/gitlab/-/issues/341140> (exploit, advisory, issue-tracking, vendor-advisory)
- <https://hackerone.com/reports/1342009> (exploit, advisory, permissions-required, third-party-advisory)
- <https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39885.json> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39885> (web)

## Sources

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

---

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