# OAuth2-Proxy's \`--gitlab-group\` GitLab Group Authorization config flag stopped working in v7.0.0

Advisory record · `GHSA-652x-m2gr-hppm`

- **Identifiers:** `GHSA-652x-m2gr-hppm` · `BIT-oauth2-proxy-2021-21411` · `CVE-2021-21411` · `GO-2025-3832`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-285](https://cwe.mitre.org/data/definitions/285.html) · [CWE-863](https://cwe.mitre.org/data/definitions/863.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 30 Jul 2025
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 Jul 2025, 16:21 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/oauth2-proxy/oauth2-proxy/v7` (Go): affected `<7.1.0`; fixed in `7.1.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> OAuth2-Proxy versions before 7.1.0 have a flaw in the GitLab provider where the \`--gitlab-group\` authorization setting stopped working in v7.0.0. Any user who authenticates through GitLab can access the protected application regardless of group membership, and the configured groups are passed to the upstream application in the X-Forwarded-Groups header. Upgrade to 7.1.0. No workaround for the group check is available, but the \`--gitlab-project\` setting can be used for project-based authorization instead.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.011, the 65th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:05 UTC: First seen by agentprime
- 31 Oct 2026, 15:05 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-652x-m2gr-hppm)

## Sources

- [GitHub Advisory Database: GHSA-652x-m2gr-hppm](https://github.com/advisories/GHSA-652x-m2gr-hppm)
- [OSV: GHSA-652x-m2gr-hppm](https://osv.dev/vulnerability/GHSA-652x-m2gr-hppm)
- <https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-652x-m2gr-hppm>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21411>
- <https://github.com/oauth2-proxy/oauth2-proxy/commit/0279fa7dff1752f1710707dbd1ffac839de8bbfc>
- <https://docs.gitlab.com/ee/user/group>
- <https://github.com/oauth2-proxy/oauth2-proxy>
- <https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.1.0>
- <https://pkg.go.dev/github.com/oauth2-proxy/oauth2-proxy/v7>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-652x-m2gr-hppm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-652x-m2gr-hppm/>. Everything for agents: <https://agentprime.io/llms.txt>.
