Skip to main content

OAuth2 Proxy CVE-2026-41059

HIGH
Authentication Bypass Using an Alternate Path or Channel (CWE-288)
2026-04-21 GitHub_M GHSA-pxq7-h93f-9jrg
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify OAuth2 Proxy with skip_auth wildcards
  2. Delivery
    Craft path with %23 fragment
  3. Exploit
    Proxy matches public allowlist pattern
  4. Execution
    Backend normalizes fragment delimiter
  5. Persist
    Serve protected resource unauthenticated
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/oauth2-proxy/oauth2-proxy no fix
go github.com/oauth2-proxy/oauth2-proxy/v7 fix: 7.15.2

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

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
SUSE HIGH
Red Hat 7.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 67% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

cpe:2.3:a:oauth2-proxy:oauth2-proxy:*:*:*:*:*:*:*:*
CVE-2026-76835 CRITICAL POC
9.3 Aug 24

Authentication bypass in OAuth2 Proxy (versions 7.5.0 up to but excluding 7.15.2) lets an unauthenticated remote attacke

CVE-2021-21291 MEDIUM POC
6.1 Feb 02

OAuth2 Proxy is an open-source reverse proxy and static file server that provides authentication using Providers (Google

CVE-2020-5233 MEDIUM POC
6.1 Jan 30

OAuth2 Proxy before 5.0 has an open redirect vulnerability. Rated medium severity (CVSS 6.1), this vulnerability is remo

CVE-2026-34457 CRITICAL
9.1 Apr 14

Authentication bypass in OAuth2 Proxy versions before 7.15.2 allows remote unauthenticated attackers to access protected

CVE-2017-1000069 HIGH
8.8 Jul 17

CSRF in Bitly oauth2_proxy 2.1 during authentication flow. Rated high severity (CVSS 8.8), this vulnerability is remotel

CVE-2017-1000070 MEDIUM
6.1 Jul 17

The Bitly oauth2_proxy in version 2.1 and earlier was affected by an open redirect vulnerability during the start and te

CVE-2020-11053 MEDIUM
6.1 May 07

In OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. Rated medium severity (CVSS 6.1), this vulnerabil

CVE-2021-21411 MEDIUM
5.5 Mar 26

OAuth2-Proxy is an open source reverse proxy that provides authentication with Google, Github or other providers. Rated

CVE-2020-4037 MEDIUM
5.4 Jun 29

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

CVE-2026-34454 LOW
3.5 Apr 14

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

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy