# CVE-2021-39889: In all versions of GitLab EE since version 14.1, due to an insecure direct object reference vulnerability, an endpoint may reveal the prote…

- Severity: Medium 4.3 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/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.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2021-10-05T13:43:07.000Z
- Modified: 2026-09-08T08:47:11.559Z
- Also known as: BIT-GITLAB-2021-39889
- Weaknesses: CWE-639
- Assigned by: GitLab

## Description

In all versions of GitLab EE since version 14.1, due to an insecure direct object reference vulnerability, an endpoint may reveal the protected branch name to a malicious user who makes a crafted API call with the ID of the protected branch.

(As written by CVE List.)

## Affected

- GitLab GitLab: >=14.1, <14.1.7; >=14.2, <14.2.5; >=14.3, <14.3.1; from 14.1.0 before 14.1.7; from 14.2.0 before 14.2.5; from 14.3.0 before 14.3.1
- gitlab (Bitnami): from 14.1.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 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

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

---

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