Home / oauth2-proxy / oauth2-proxy / CVE-2026-40575
CVE-2026-40575: is it exploited, and which versions of oauth2-proxy are affected and fixed?
CVE-2026-40575 is an authentication bypass by spoofing vulnerability in oauth2-proxy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: github.com/oauth2-proxy/oauth2-proxy/v7 from 7.5.0 before 7.15.2 (GitHub advisory GHSA-7x63-xv5r-3p2x). Fixed in 7.15.2 (GitHub advisory GHSA-7x63-xv5r-3p2x). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-40575?
OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing
OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 may trust a client-supplied `X-Forwarded-Uri` header when `--reverse-proxy` is enabled and `--skip-auth-regex` or `--skip-auth-route` is configured. An attacker can spoof this header so OAuth2 Proxy evaluates authentication and skip-auth rules against a different path than the one actually sent to the upstream application. This can result in an unauthenticated remote attacker bypassing authentication and accessing protected routes without a valid session. Impacted users are deployments that run oauth2-proxy with `--reverse-proxy` enabled and configure at least one `--skip-auth-regex` or `--skip-auth-route` rule. This issue is patched in `v7.15.2`. Some workarounds are available for those who cannot upgrade immediately. Strip any client-provided `X-Forwarded-Uri` header at the reverse proxy or load balancer level; explicitly overwrite `X-Forwarded-Uri` with the actual request URI before forwarding requests to OAuth2 Proxy; restrict direct client access to OAuth2 Proxy so it can only be reached through a trusted reverse proxy; and/or remove or narrow `--skip-auth-regex` / `--skip-auth-route` rules where possible. For nginx-based deployments, ensure `X-Forwarded-Uri` is set by nginx and not passed through from the client.
From the CVE record by GitHub_M, last updated July 15, 2026, 01:00 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| oauth2-proxy | oauth2-proxy | >= 7.5.0, < 7.15.2 |
As the CVE record by GitHub_M states it, last updated July 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/oauth2-proxy/oauth2-proxy/v7 | >= 7.5.0, < 7.15.2 | 7.15.2 | GHSA-7x63-xv5r-3p2x |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 21, 2026. Summary: OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| oauth2 proxy project | oauth2 proxy | from 7.5.0 before 7.15.2 | application |
NVD analysis (status Modified), last modified November 11, 2026, 23:10 UTC.
How severe is CVE-2026-40575?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
| High 8.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N | redhat-SADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40575 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, April 22, 2026)
- EPSS
- 0.49% probability of exploitation activity in the next 30 days, percentile 43.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-290 Authentication Bypass by Spoofing
Where are the vendor advisories and references?
- https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2026-40575 vdb-entry, x_refsource_REDHAT
- RHBZ#2460449 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40575.json x_sadp-csaf-vex
When was it published, and where is the official record?
- Reserved
- April 14, 2026
- Published
- April 21, 2026, 23:20 UTC
- CVE record updated
- July 15, 2026, 01:00 UTC by GitHub_M
- NVD
- Modified, last modified November 11, 2026, 23:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect oauth2-proxy?
- Aug 24, 2026CVE-2026-76835 oauth2-proxy: authentication bypass by spoofing
- Apr 21, 2026CVE-2026-41059 oauth2-proxy: authentication bypass through another path
- Apr 21, 2026CVE-2026-40574 oauth2-proxy: incorrect authorization
- Apr 14, 2026CVE-2026-34457 oauth2-proxy: authentication bypass by spoofing
- Apr 14, 2026CVE-2026-34454 oauth2-proxy: session does not expire
- Nov 10, 2025CVE-2025-64484 oauth2-proxy: improper Neutralization of HTTP Headers for Scripting Syntax
- Jul 30, 2025CVE-2025-54576 oauth2-proxy: authentication bypass by spoofing
- Mar 26, 2021CVE-2021-21411 oauth2-proxy: incorrect authorization
Questions about CVE-2026-40575
Is CVE-2026-40575 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.49% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of oauth2-proxy are affected by CVE-2026-40575?
github.com/oauth2-proxy/oauth2-proxy/v7 from 7.5.0 before 7.15.2, per the GitHub advisory GHSA-7x63-xv5r-3p2x. The tables above give every range the sources list.
Which version fixes CVE-2026-40575?
7.15.2, per the GitHub advisory GHSA-7x63-xv5r-3p2x. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40575?
Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40575?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.