CVE-2026-40575
Last modified
CVE-2026-40575 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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. EPSS estimates a 0.48% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Oauth2 Proxy Project | Oauth2 Proxy | >= 7.5.0, < 7.15.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-40575?
How severe is CVE-2026-40575?
How do I fix CVE-2026-40575?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40569FreeScout is a free self-hosted help desk and shared mailbox…9
- CVE-2026-4057The Download Manager plugin for WordPress is vulnerable to u…4.3
- CVE-2026-40570FreeScout is a free self-hosted help desk and shared mailbox…5.7
- CVE-2026-40571NamelessMC is website software for Minecraft servers. In ver…5.3
- CVE-2026-40572NovumOS is a custom 32-bit operating system written in Zig a…9
- CVE-2026-40574OAuth2 Proxy is a reverse proxy that provides authentication…6.8
- CVE-2026-40576excel-mcp-server is a Model Context Protocol server for Exce…9.4
- CVE-2026-4058The User Frontend: AI Powered Frontend Posting, User Directo…4.3
- CVE-2026-40581ChurchCRM is an open-source church management system. In ver…8.1
- CVE-2026-40582ChurchCRM is an open-source church management system. In ver…9.1
- CVE-2026-40583UltraDAG is a minimal DAG-BFT blockchain in Rust. In version…8.2
- CVE-2026-40584RansomLook is a tool to monitor Ransomware groups and market…7.5
Are you affected by CVE-2026-40575?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
