# CVE-2026-76835: OAuth2 Proxy 7.15.2 through 7.15.4 Authentication Bypass via X-Forwarded-Uri Under the Default Trusted Proxy Set

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA: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.45%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T19:21:06.000Z
- Modified: 2026-10-13T09:10:00.323Z
- Also known as: GHSA-7x63-xv5r-3p2x, BIT-OAUTH2-PROXY-2026-40575, BIT-OAUTH2-PROXY-2026-76835, GO-2026-5236
- Related: CVE-2026-40575
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulnCheck

## Description

OAuth2 Proxy honours a client-supplied X-Forwarded-Uri header when deciding whether a request may skip authentication, because the guard added for CVE-2026-40575 is inert in the default reverse-proxy configuration. GetRequestURI in pkg/requests/util/util.go prefers that header over the real request URI whenever CanTrustForwardedHeaders returns true, and isAllowedPath in oauthproxy.go matches the skip_auth_routes and skip_auth_regex allow list against the resulting path. CanTrustForwardedHeaders in pkg/apis/middleware/scope.go grants that trust when the caller's address is in the trusted proxy set, and buildTrustedProxyNetSet falls back to defaultTrustedProxyIPs, which is 0.0.0.0/0 and ::/0, whenever reverse proxy mode is enabled without trusted_proxy_ip configured. Every client is therefore treated as a trusted proxy. An unauthenticated attacker can request a protected upstream path while setting X-Forwarded-Uri to a value matching an allow-listed route, so the skip-auth decision is made against the spoofed value while the upstream receives the protected path unchanged.

(As written by CVE List.)

## Affected

- oauth2-proxy oauth2-proxy: from 7.15.2 up to 7.15.4
- github.com/oauth2-proxy/oauth2-proxy/v7 (Go): from 7.5.0 before 7.15.2
- github.com/oauth2-proxy/oauth2-proxy (Go): all versions
- oauth2-proxy (Bitnami): from 7.5.0 before 7.15.2; from 7.15.2 before 7.15.5

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/oauth2-proxy/oauth2-proxy/issues/3506> (exploit, issue-tracking, web)
- <https://github.com/oauth2-proxy/oauth2-proxy> (package, product, web)
- <https://github.com/oauth2-proxy/oauth2-proxy/blob/v7.15.4/pkg/apis/middleware/scope.go> (technical-description, web)
- <https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x> (advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/oauth2-proxy-through-authentication-bypass-via-x-forwarded-uri-under-the-default-trusted-proxy-set> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40575> (advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-40575> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460449> (web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40575.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76835> (web)

## Sources

- CVE List: [CVE-2026-76835](https://www.cve.org/CVERecord?id=CVE-2026-76835), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-7x63-xv5r-3p2x](https://github.com/advisories/GHSA-7x63-xv5r-3p2x), CC-BY-4.0, modified 2026-09-25
- Go Vulnerability Database: [GO-2026-5236](https://pkg.go.dev/vuln/GO-2026-5236), CC-BY-4.0, modified 2026-09-25
- NVD: [CVE-2026-76835](https://nvd.nist.gov/vuln/detail/CVE-2026-76835), Public domain, modified 2026-10-13
- Bitnami Vulnerability Database: [BIT-OAUTH2-PROXY-2026-40575](https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2026-40575), Apache-2.0, modified 2026-09-25
- Bitnami Vulnerability Database: [BIT-OAUTH2-PROXY-2026-76835](https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2026-76835), Apache-2.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-76835 · Whole record: https://cve.day/CVE-2026-76835.json · Rebuilt by cve.day 2026-11-25T22:59:35.054Z
