CVE-2026-41059: OAuth2 Proxy has an Authentication Bypass via Fragment Confusion in skip_auth_routes and skip_auth_regex

Published Apr 21, 2026
·
Updated

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 skipauthroutes or the legacy skipauthregex; 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 skipauthroutes and skipauthregex 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 skipauthroutes rules.

Affected Software

2 affected components
OAuth2 Proxy OAuth2 Proxy>=7.5.0<=7.15.1
Oauth2 Proxy Project Oauth2 Proxy>=7.5.0<7.15.2

Event History

Apr 21, 2026
CVE Published
via MITRE·11:17 PM
Data Sourced
via MITRE·11:17 PM
DescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41059?

CVE-2026-41059 has been rated as a high severity vulnerability due to its potential for authentication bypass.

2

How do I fix CVE-2026-41059?

To fix CVE-2026-41059, upgrade OAuth2 Proxy to a version higher than 7.15.1.

3

What versions are affected by CVE-2026-41059?

CVE-2026-41059 affects OAuth2 Proxy versions from 7.5.0 to 7.15.1.

4

What type of vulnerability is CVE-2026-41059?

CVE-2026-41059 is classified as an authentication bypass vulnerability caused by fragment confusion.

5

What are the risks associated with CVE-2026-41059?

The risks of CVE-2026-41059 include unauthorized access to resources that should be protected by OAuth2 authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203