User Impersonation Affecting github.com/oauth2-proxy/oauth2-proxy/v7/pkg/requests/util package, versions <7.11.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOAUTH2PROXYOAUTH2PROXYV7PKGREQUESTSUTIL-11342369
  • published31 Jul 2025
  • disclosed30 Jul 2025
  • creditUnknown

Introduced: 30 Jul 2025

NewCVE-2025-54576  (opens in a new tab)
CWE-290  (opens in a new tab)

How to fix?

Upgrade github.com/oauth2-proxy/oauth2-proxy/v7/pkg/requests/util to version 7.11.0 or higher.

Overview

Affected versions of this package are vulnerable to User Impersonation due to using the skip_auth_routes configuration option with regex patterns. An attacker can gain unauthorized access to protected resources by crafting URLs with query parameters that match overly broad or improperly anchored regex patterns configured in skip_auth_routes.

Note: This is only exploitable if the deployment uses skip_auth_routes with regex patterns that include wildcards or are not properly anchored.

Workaround

This vulnerability can be mitigated by auditing all skip_auth_routes configurations for overly permissive patterns, replacing wildcard patterns with exact path matches, ensuring regex patterns are properly anchored (starting with ^ and ending with $), or implementing custom validation that strips query parameters before regex matching.

CVSS Base Scores

version 4.0
version 3.1