CVE-2025-54576CWE-290

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

Critical · published July 30, 2025

CVSS v3.1
9.1
EPSS
1%
Percentile
67.9
In the wild
Unconfirmed
What it is

🚨 A crafty crafted URL is all it takes to sidestep authentication in OAuth2-Proxy versions 7.10.0 and below! 🔥 Think of your regex patterns as a bouncer at a club. If he’s not checking IDs closely enough and lets anyone through with a fake ID that looks close enough to the real thing, any partygoer can waltz right in! An attacker could easily bypass authentication and gain unauthorized access to protected resources, exposing sensitive data and compromising the security of your system. This could lead to data breaches or unauthorized actions taken on behalf of legitimate users—definitely not the kind of surprise you want at your next security audit!

Put simply

Think of your regex patterns as a bouncer at a club. If he’s not checking IDs closely enough and lets anyone through with a fake ID that looks close enough to the real thing, any partygoer can waltz right in! This vulnerability arises from the skip_auth_routes configuration option that allows regex patterns to match against full request URIs, allowing attackers to exploit overly broad patterns. When regex patterns contain wildcards or are not properly anchored, they can inadvertently allow unauthorized requests to pass through.

What to do

An attacker could easily bypass authentication and gain unauthorized access to protected resources, exposing sensitive data and compromising the security of your system. This could lead to data breaches or unauthorized actions taken on behalf of legitimate users—definitely not the kind of surprise you want at your next security audit! Upgrade to OAuth2-Proxy version 7.11.0 immediately to close this critical hole. In the meantime, audit your skip_auth_routes configuration for any overly permissive patterns, and replace wildcards with exact matches. Ensure your regex patterns start with ^ and end with $ to avoid any unwanted matches! You've got this! Follow these steps, and you’ll keep your systems safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01200 · 67.9th percentile
Weakness
CWE-290 · Authentication Bypass by Spoofing
Published
2025-07-30T19:41Z
EPSS history
Timeline
  • 30 JUL 19:41Z
    OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion
    cvelistv5