OAuth2 Proxy
CVE-2026-41059
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify OAuth2 Proxy with skip_auth wildcards
-
DeliveryCraft path with %23 fragment
-
ExploitProxy matches public allowlist pattern
-
ExecutionBackend normalizes fragment delimiter
-
PersistServe protected resource unauthenticated
-
ImpactExfiltrate confidential data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Alternate path authentication
|
| Exploitation Conditions | Successful exploitation requires three simultaneous conditions at the deployment level: (1) OAuth2 Proxy configured with skip_auth_routes or skip_auth_regex containing wildcard patterns that span path segments (e.g., patterns using .* or [^/]+ across slashes), not exact-match rules; (2) one or more wildcard patterns matching paths where attacker-controlled suffixes (specifically '#' or '%23' followed by arbitrary text) can satisfy the pattern while altering backend routing behavior; (3) upstream protected application interpreting '#' as RFC 3986 fragment delimiter during request routing, or otherwise resolving the crafted path to a sensitive resource that OAuth2 Proxy intended to protect. Exploitation is LIMITED by: authentication still required if no skip-auth rules exist; exact-match skip_auth_routes patterns immune to suffix manipulation; backend applications treating '#' as literal path character (rare but eliminates discrepancy); network-level filtering of fragment characters in paths. Deployments using only OAuth2 Proxy's default authenticated-everywhere mode without skip-auth configuration face zero risk regardless of backend behavior. |
| Impact | Real-world risk depends heavily on deployment configuration. CVSS 8.2 (High) reflects worst-case network-accessible unauthenticated bypass with high confidentiality impact, but AC:L requires specific preconditions: (1) active use of skip_auth_routes/skip_auth_regex, (2) broad wildcard patterns, and (3) backend applications interpreting '#' as fragment delimiter. Deployments using exact-match public paths or omitting skip-auth rules entirely face zero risk. No EPSS score provided; no CISA KEV listing confirms absence of widespread exploitation campaigns. GitHub Security Advisory GHSA-pxq7-h93f-9jrg indicates vendor disclosure through responsible channels with immediate patch availability, reducing window for mass exploitation. Scope:Unchanged means compromise remains within OAuth2 Proxy's security boundary-attackers gain unauthorized resource access but not elevated privileges on backend systems. Priority depends on configuration audit: high-risk for deployments matching all three conditions, low-risk for tightly scoped or skip-auth-free configurations. Key missing data: EPSS probability, confirmation of in-the-wild attempts, clarity on which popular backend frameworks (nginx, Apache, application servers) exhibit vulnerable fragment-handling behavior. |
| Exploit ScenarioDerived | Attacker identifies an OAuth2 Proxy deployment protecting /admin/* with skip_auth_routes pattern ^/public/.*/docs$. The attacker crafts request GET /admin/users%23/docs targeting the OAuth2 Proxy. The proxy's skip-auth matcher sees the literal string /admin/users#/docs, applies the regex ^/public/.*/docs$, fails to match, but due to backend normalization, the upstream application (e.g., Flask with fragment-aware routing) strips the fragment, processes /admin/users, and returns sensitive user data without authentication. No public exploit code identified at time of analysis, but attack requires only HTTP client capable of URL encoding. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 22, 2026
Authentication bypass in OAuth2 Proxy 7.5.0-7.15.1 allows remote unauthenticated attackers to access protected resources by exploiting path normalization discrepancies between the proxy and backend services. When deployments use skip_auth_routes or skip_auth_regex with broad wildcard patterns, attackers can inject '#' or '%23' (URL-encoded fragment delimiter) to match public allowlist rules while the upstream application serves sensitive endpoints. CVSS 8.2 (AV:N/AC:L/PR:N/UI:N) reflects network-based unauthenticated access; no public exploit identified at time of analysis. EPSS data not provided. Fixed in version 7.15.2 through conservative path normalization.
RemediationAI
Vendor-released patch: OAuth2 Proxy 7.15.2 implements conservative path normalization stripping fragment content before skip-auth rule evaluation. Upgrade immediately via package manager or container image update; verify using oauth2-proxy --version. For deployments unable to upgrade, apply defense-in-depth mitigations in priority order: (1) Replace broad skip_auth_routes patterns like ^/public/.*/assets$ with exact anchored paths (^/public/css$, ^/public/js$) and explicit HTTP methods (GET only for static assets); (2) Deploy WAF or ingress controller rules rejecting requests containing '#' or '%23' in URI paths-note this may break legitimate applications using fragment identifiers in server-side routing, test thoroughly in staging; (3) Audit backend application routing to confirm fragment-handling behavior, reconfigure applications to reject fragment-containing paths if possible; (4) Remove skip_auth_regex entirely if legacy feature, migrate to skip_auth_routes with method-scoped rules. Consult GitHub advisory https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-pxq7-h93f-9jrg for additional hardening guidance. Each workaround trades operational flexibility for security-exact-path whitelisting increases configuration overhead, fragment rejection may break edge-case applications.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OAuth2 Proxy functions as a reverse proxy enforcing authentication via OAuth2/OIDC providers before forwarding requests to upstream applications. The vulnerability (CWE-288: Authentication Bypass Using an Alternate Path or Channel) stems from inconsistent interpretation of URI fragments between OAuth2 Proxy's skip-auth pattern matching logic and backend HTTP servers. Per CPE cpe:2.3:a:oauth2-proxy:oauth2-proxy:*:*:*:*:*:*:*:*, all OAuth2 Proxy versions 7.5.0-7.15.1 are affected. The flaw occurs when skip_auth_routes or skip_auth_regex uses regular expressions with wildcards spanning path segments (e.g., ^/foo/.*/bar$) that inadvertently permit attacker-controlled fragments. HTTP backends treating '#' as a fragment delimiter (per RFC 3986) or applying routing normalization can resolve crafted paths like /foo/secret#/bar to protected resources while OAuth2 Proxy incorrectly matches the literal string against public allowlist patterns. The fix in 7.15.2 normalizes request paths before skip-auth evaluation, stripping fragment components to ensure routing consistency.
Know when Oauth2 Proxy gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 have a configuration-dependent authentication bypass. Deployments are affected when all of the following are true: Use of skip_auth_routes or the legacy skip_auth_regex; use of patterns that can be widened by attacker-controlled suffixes, such as ^/foo/.*/bar$ causing potential exposure of /foo/secret; and protected upstream applications that interpret # as a fragment delimiter or otherwise route the request to the protected base path. In deployments that rely on these settings, an unauthenticated attacker can send a crafted request containing a number sign in the path, including the browser-safe encoded form %23, so that OAuth2 Proxy matches a public allowlist rule while the backend serves a protected resource. Deployments that do not use these skip-auth options, or that only allow exact public paths with tightly scoped method and path rules, are not affected. A fix has been implemented in version 7.15.2 to normalize request paths more conservatively before skip-auth matching so fragment content does not influence allowlist decisions. Users who cannot upgrade immediately can reduce exposure by tightening or removing skip_auth_routes and skip_auth_regex rules, especially patterns that use broad wildcards across path segments. Recommended mitigations include replacing broad rules with exact, anchored public paths and explicit HTTP methods; rejecting requests whose path contains %23 or # at the ingress, load balancer, or WAF level; and/or avoiding placing sensitive application paths behind broad skip_auth_routes rules.
Executive ViewAI
OAuth2 Proxy versions 7.5.0 through 7.15.1 contain an authentication bypass vulnerability that allows unauthenticated attackers to access protected resources by exploiting path normalization differences between the proxy and backend services. Organizations using OAuth2 Proxy with permissive skip_auth rules risk unauthorized access to sensitive data and systems without requiring valid credentials. This affects any deployment relying on OAuth2 Proxy for access control.
If immediate patching to 7.15.2+ is not possible: (1) Restrict skip_auth_routes and skip_auth_regex to explicit paths only-eliminate wildcard patterns; (2) implement WAF or reverse proxy rules to reject requests containing '#' or '%23' in the URL path; (3) enable detailed request logging to detect exploitation attempts; (4) apply IP allowlisting or additional network segmentation to limit access to OAuth2 Proxy. Patch available per vendor advisory (version 7.15.2).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in Oauth2 Proxy
View allAuthentication bypass in OAuth2 Proxy (versions 7.5.0 up to but excluding 7.15.2) lets an unauthenticated remote attacke
OAuth2 Proxy is an open-source reverse proxy and static file server that provides authentication using Providers (Google
OAuth2 Proxy before 5.0 has an open redirect vulnerability. Rated medium severity (CVSS 6.1), this vulnerability is remo
Authentication bypass in OAuth2 Proxy versions before 7.15.2 allows remote unauthenticated attackers to access protected
CSRF in Bitly oauth2_proxy 2.1 during authentication flow. Rated high severity (CVSS 8.8), this vulnerability is remotel
The Bitly oauth2_proxy in version 2.1 and earlier was affected by an open redirect vulnerability during the start and te
In OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. Rated medium severity (CVSS 6.1), this vulnerabil
OAuth2-Proxy is an open source reverse proxy that provides authentication with Google, Github or other providers. Rated
In OAuth2 Proxy from version 5.1.1 and less than version 6.0.0, users can provide a redirect address for the proxy to se
OAuth2 Proxy versions 7.11.0 through 7.15.1 fail to clear the session cookie when rendering the sign-in page due to a re
Same technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-pxq7-h93f-9jrg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB