Loading...
Skip to main content

CVE-2025-54576 — OAuth2-Proxy has authentication bypass in...

CRITICAL

OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion

Published July 30, 2025Updated September 10, 2026Source: osv

Summary

### Impact This vulnerability affects oauth2-proxy deployments using the `skip_auth_routes` configuration option with regex patterns. The vulnerability allows attackers to bypass authentication by crafting URLs with query parameters that satisfy the configured regex patterns, potentially gaining unauthorized access to protected resources. The issue stems from `skip_auth_routes` matching against the full request URI (path + query parameters) instead of just the path as documented. This discrepancy enables authentication bypass attacks where attackers append malicious query parameters to access protected endpoints. Example Attack: * Configuration: `skip_auth_routes = [ "^/foo/.*/bar$" ]` * Intended behavior: Allow `/foo/something/bar` * Actual vulnerability: Also allows `/foo/critical_endpoint?param=/bar` Deployments using `skip_auth_routes` with regex patterns containing wildcards or broad matching patterns are most at risk, especially when backend services ignore unknown query parameters. ### Patches A patch has been released with version [v7.11.0](https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.11.0). ### Workarounds Immediate mitigations: 1. Review regex patterns: Audit all `skip_auth_routes` configurations for overly permissive patterns 2. Use precise patterns: Replace wildcard patterns with exact path matches where possible 3. Anchor patterns: Ensure regex patterns are properly anchored (start with `^` and end with `$`) 4. Path-only matching: Consider implementing custom validation that strips query parameters before regex matching Example secure configuration: ```toml # Instead of: "^/public/.*" # Use specific paths: "^/public/assets$", "^/public/health$" skip_auth_routes = ["^/public/assets$", "^/public/health$", "^/api/status$"] ```

Advisory Timeline

  • First published July 30, 2025 (439 days ago).
  • Last revised September 10, 2026 — 406 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/oauth2-proxy/oauth2-proxy/v7 to 7.11.0 or later
go get github.com/oauth2-proxy/oauth2-proxy/v7@v7.11.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/oauth2-proxy/oauth2-proxy/v7
go
All versions7.11.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2025-54576?
OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2025-54576?
CVE-2025-54576 affects github.com/oauth2-proxy/oauth2-proxy/v7. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-54576 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-7rh7-c77v-6434
BIT-oauth2-proxy-2025-54576
GO-2025-3833

Related CVEs

  • CVE-2026-34457
    CRITICAL

    OAuth2 Proxy's Health Check User-Agent Matching Bypasses Authentication in auth_request Mode

  • CVE-2026-40575
    CRITICAL

    OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing

  • CVE-2026-107806
    CRITICAL

    Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite

  • CVE-2026-68582
    CRITICAL

    Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)

  • CVE-2025-64484
    HIGH

    OAuth2-Proxy is vulnerable to header smuggling via underscore leading to potential privilege escalation

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies