Repository navigation
Releases
v7.15.6
Release Highlights
- Entra ID: Fixed tenant ID extraction for national / private cloud support
- Fixed multiple return code and redirect issues
- 🔵 Golang version upgrade to v1.26.10
- Upgrade of all dependencies to their latest versions
- 🕵️♀️ Vulnerabilities have been addressed
Important Notes
Breaking Changes
Changes since v7.15.5
- #3587 fix: keep the query after the slash in the trailing slash redirect (@jayhemnani9910)
- #3584 fix: read the Entra ID tenant from the
tidclaim so session validation works in national clouds such as Azure US Government (fixes #2939) (@asifsid / @dantreiman) - #3583 fix: return 403 instead of 500 when the ID token audience is invalid @marsluca
- #3573 fix: return 403 instead of 500 when a user with an unverified email completes the OAuth2 callback (fixes #3234) @amichelic
- #3540 fix: honor
--oidc-groups-claimfor tokens verified via--extra-jwt-issuers(@jaewak / @tuunit) - #3219 fix: escape OAuth state redirect URLs to preserve query parameters (@CallumWayve)
v7.15.5
Release Highlights
- 🔵 Golang version upgrade to v1.26.8
- Upgrade of all dependencies to their latest versions
- 🕵️♀️ Vulnerabilities have been addressed
Important Notes
The Bitbucket provider --bitbucket-team flag got deprecated and we added --bitbucket-workspace flag to restrict logins to members of a specific workspace instead of a team. The --bitbucket-team flag is still supported and will act like workspace but will be removed in a future release. Please update your configuration to use the new --bitbucket-workspace flag. For more information, refer to Bitbucket teams API deprecation.
Additionally refer to OAuth client configuration for Bitbucket provider in the documentation. for changes in the scopes (Account>Read) is now required if you restrict by workspace.
Security Advisories:
- (Critical) GHSA-63jm-59jj-478j Authentication bypass via inconsistent skip-auth path interpretation
- (Critical) GHSA-wr5q-7wxw-x568 Authentication bypass via spoofed client-IP headers in OAuth2 Proxy
- (Moderate) GHSA-hhqp-vx7f-5c6m Credential disclosure through OAuth callback error logging
Read more below
Critical Fixes
For a small subset of deployments these fixes might be breaking change for the sake of fixing trust/security boundaries.
GHSA-63jm-59jj-478j Authentication bypass via inconsistent skip-auth path interpretation
Skip-auth path matching is now stricter: --skip-auth-route and
--skip-auth-regex no longer grant exemptions for invalid or ambiguous paths,
even when a positive or negated rule would otherwise match. This includes dot
segments, repeated slashes (including leading //), semicolons, backslashes,
fragment-like content, decoded question marks, and control characters, including
encoded forms. For example, previously public /public/file;version=1 and
/public//file now follow normal authentication and authorization. # and %23
are no longer silently stripped before matching.
Trusted X-Forwarded-Uri metadata must use origin form (/path?query), not a full
URL. Before upgrading, review public-route exemptions and external-auth header
configuration. If unusual paths must remain public, expose them separately from
the protected routing boundary rather than broadening skip-auth rules.
Flag names and configuration syntax are unchanged. Ordinary query strings,
trailing-slash distinctions, and unambiguous escaped characters retain their
matching behavior. The fix does not rewrite upstream request targets or
unconditionally reject authenticated requests; existing router behavior and
separately configured exemptions remain unchanged.
GHSA-wr5q-7wxw-x568 Authentication bypass via spoofed client-IP headers in OAuth2 Proxy
Trusted client-IP resolution now enforces trusted proxy boundaries: When
--reverse-proxy is enabled, client-IP headers configured via
--real-client-ip-header are accepted only from direct peers that match
--trusted-proxy-ip. If the direct peer is not trusted, the transport peer
address is evaluated instead.
For X-Forwarded-For, the chain is traversed from right to left, skipping
intermediate proxies in --trusted-proxy-ip and treating the first untrusted
address as the client. Leftmost entries cannot be spoofed past the trusted proxy
boundary. If --trusted-proxy-ip is left unset, OAuth2 Proxy preserves backwards
compatibility by trusting all source addresses and retaining the leftmost
behavior, which does not protect against spoofed XFF headers. To secure
--trusted-ip exemptions behind a reverse proxy, configure explicit, narrowly
scoped --trusted-proxy-ip CIDR ranges and ensure the proxy sanitizes client-IP
headers. Missing or malformed client-IP headers from a trusted proxy will no
longer fall back to granting exemptions based on the proxy's own IP.
Breaking Changes
Changes since v7.15.4
- #3546 fix: strip the port from the request host when matching cookie domains @kirilju
- #3547 fix: refresh additional claims for OIDC and MS Entra ID providers and properly populate additional claims during login (@Apollo3zehn)
- #3477 fix(bitbucket): auth failure due to Bitbucket OAuth 2.0 changes on May 4th 2026 @mfouad
- #3535 fix: surface Microsoft Graph errors during Entra group overage instead of logging in with an incomplete group set @no-hup
- #3527 fix(encryption): return an error instead of panicking on a short GCM ciphertext @winklemad
v7.15.4
Release Highlights
- 🔵 Golang version upgrade to v1.26.7
- Upgrade of all dependencies to their latest versions
- 🕵️♀️ Vulnerabilities have been addressed
Important Notes
Breaking Changes
Changes since v7.15.3
v7.15.3
Release Highlights
- 🔵 Golang version upgrade to v1.26.4
- Upgrade of all dependencies to their latest versions
- 🕵️♀️ Vulnerabilities have ben addressed
Important Notes
Breaking Changes
Changes since v7.15.2
- #3477 chore(dep): bump go to 1.26 and migrate of reverse proxy handling
v7.15.2
Release Highlights
- 🔵 Golang version upgrade to v1.25.9
- Upgrade of all dependencies to their latest versions
- CVE-2026-34986
- CVE-2026-32281
- CVE-2026-32289
- CVE-2026-32288
- CVE-2026-32280
- CVE-2026-32282
- CVE-2026-32283
- 🕵️♀️ Vulnerabilities have been addressed
Important Notes
We have had security audits performed on OAuth2 Proxy in the past couple of weeks and as a result we have fixed
several CRITICAL vulnerabilities.
The security vulnerabilities include multiple authentication bypasses and a potential session fixation attack.
For more details and to identify if you are effects, we urge all users of OAuth2 Proxy to read the security
disclosures.
- (Critical) GHSA-5hvv-m4w4-gf6v fix: health check user-agent authentication bypass
- (Critical) GHSA-7x63-xv5r-3p2x fix: authentication bypass via X-Forwarded-Uri header spoofing
- (High) GHSA-pxq7-h93f-9jrg fix: fragment evaluation as part of the allowed routes
- (Moderate) GHSA-c5c4-8r6x-56w3 fix: email validation bypass via malformed multi-@ email claims
Furthermore, for improving the security of OAuth2 Proxy we introduced a new flag --trusted-proxy-ip that allows users
to explicitly specify trusted reverse proxy IPs for the X-Forwarded-* headers. This is an important step to prevent
potential header spoofing attacks and to ensure that OAuth2 Proxy only trusts headers from known and trusted sources.
We highly recommend users to review their deployment architecture and consider using this flag to enhance the security
of their OAuth2 Proxy instances. Check the docs for more details: https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#proxy-options
Furthermore, we want to thank everyone who contributed to the audits and reported potential issues to make open source
software like OAuth2 Proxy more secure for everyone.
Breaking Changes
Changes since v7.15.1
- #3411 chore(deps): update gomod dependencies (@tuunit)
- #3333 fix: invalidate session on fatal OAuth2 refresh errors (@frhack)
- GHSA-f24x-5g9q-753f fix: clear session cookie at beginning of signinpage handler (@fnoehWM / @bella-WI / @tuunit)
- GHSA-5hvv-m4w4-gf6v fix: health check user-agent authentication bypass (@tuunit)
- GHSA-7x63-xv5r-3p2x fix: authentication bypass via X-Forwarded-Uri header spoofing (@tuunit)
- GHSA-pxq7-h93f-9jrg fix: fragment evaluation as part of the allowed routes (@tuunit)
- GHSA-c5c4-8r6x-56w3 fix: email validation bypass via malformed multi-@ email claims (@tuunit)
v7.15.1
Release Highlights
- 🐛 Squashed some bugs
- 🕵️♀️ Vulnerabilities have been addressed
- CVE-2026-33186
OAuth2 Proxy was not impacted by this vulnerability as it isn't in the path of execution
- CVE-2026-33186
Important Notes
Breaking Changes
Changes since v7.15.0
- #3382 chore(deps): update gomod and golangci/golangci-lint to v2.11.4 (@tuunit)
- #3374 fix: handle Unix socket RemoteAddr in IP resolution (@H1net)
- #3381 fix: do not log error for backend logout 204 (@artificiosus)
- #3327 fix: improve logging when session refresh token is missing (@yosri-brh)
- #2767 fix: propagate errors during route building (@sybereal)
v7.15.0
Release Highlights
- 🔒 OIDC JWT signing algorithms can now be configured
- 🍪 CSRF cookie improvements (SameSite option, proper expiration validation)
- 🧪 Configuration validation flag: --config-test
- 🔌 Unix socket file mode support
- 👤 Session state can now be extend with arbitrary claims from ID Token and upstream IDP user profiles endpoint
- This opens the door for multiple features like:
- Additional arbitrary header values for any claims your IDP provides
- Extended OAuth2 Proxy UserInfo endpoint with all additional claims
- Read the docs here
Important Notes
CSRF cookie validation now correctly uses CSRFExpire instead of Expire. If you relied on the previous behavior, review your session timeout configuration.
Check the [documentation(https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#cookie-options) for cookie-csrf-expire.
Breaking Changes
Changes since v7.14.3
- #3352 fix: backend logout URL call on sign out (#3172)(@vsejpal)
- #3332 ci: distribute windows binary with .exe extension (@igitur)
- #2685 feat: allow arbitrary claims from the IDToken and IdentityProvider UserInfo endpoint to be added to the session state (@vegetablest)
- #3278 feat: possibility to inject id_token in redirect url during sign out (@albanf)
- #2851 feat: add support for specifying allowed OIDC JWT signing algorithms (#2753) (@andoks / @tuunit)
- #3369 fix: use CSRFExpire instead of Expire for CSRF cookie validation (@Br1an67)
- #3365 fix: filter empty strings from allowed groups (@Br1an67)
- #3338 feat: add --config-test flag for validating configuration (@MayorFaj)
- #3347 feat: add same site option for csrf cookies (@jvnoije)
- #3376 feat: allow setting unix socket file mode when declaring listener (@Tristan971 / @tuunit)
v7.14.3
Release Highlights
- 🔵 Go1.25.7 and upgrade of dependencies to latest versions (@tuunit)
- Fixes CVE-2025-68121
- 🐛 Bug fixes
- Allow Redis URL parameters to configure username, password and max idle connection timeout if the matching configuration is empty.
Important Notes
We improved our supply chain security by added additional checks to prevent potential command injection in the publish release workflow and to ensure that it can only be triggered from branches originating in the local repository. This potential issue was reported by automated systems as well as a couple of security researchers, and we want to thank everyone for their diligence in looking out for the security of the project. Especially Aastha Aggarwal for her detailed report and follow-up. @Aastha2602
Breaking Changes
Changes since v7.14.2
- #3183 fix: allow URL parameters to configure username, password and max idle connection timeout if the matching configuration is empty. (@Richard87)
v7.14.2
Release Highlights
- Revert AuthOnly endpoint change from v7.14.1 that caused issues when using
skip-provider-buttonenabled
Important Notes
- This release reverts the change made in v7.14.1 that caused issues when using the
skip-provider-buttonenabled. Now, when a session does not exist, the AuthOnly endpoint will send a 401 status code as expected instead of a 302 redirect. And instead we extended the documentation to clarify the behavior when usingnginxwithauth_requestandskip-provider-buttonand how to properly configure redirects for browser and API routes.
Excerpt from v7.14.0 release letter:
This release introduces a breaking change for Alpha Config users and moves us significantly
closer to removing legacy configuration parameters, making the codebase of OAuth2 Proxy more
future proof and extensible.
From v7.14.0 onward, header injection sources must be explicitly nested. If you
previously relied on squashed fields, update to the new structure before upgrading:
# before v7.14.0
injectRequestHeaders:
- name: X-Forwarded-User
values:
- claim: user
- name: X-Custom-Secret-header
values:
- value: my-super-secret
# v7.14.0 and later
injectRequestHeaders:
- name: X-Forwarded-User
values:
- claimSource:
claim: user
- name: X-Custom-Secret-header
values:
- secretSource:
value: my-super-secretFurthermore, Alpha Config now fully supports configuring the Server struct using YAML.
// Server represents the configuration for the Proxy HTTP(S) configuration.
type Server struct {
// BindAddress is the address on which to serve traffic.
BindAddress string `yaml:"bindAddress,omitempty"`
// SecureBindAddress is the address on which to serve secure traffic.
SecureBindAddress string `yaml:"secureBindAddress,omitempty"`
// TLS contains the information for loading the certificate and key for the
// secure traffic and further configuration for the TLS server.
TLS *TLS `yaml:"tls,omitempty"`
}
// TLS contains the information for loading a TLS certificate and key
// as well as an optional minimal TLS version that is acceptable.
type TLS struct {
// Key is the TLS key data to use.
Key *SecretSource `yaml:"key,omitempty"`
// Cert is the TLS certificate data to use.
Cert *SecretSource `yaml:"cert,omitempty"`
// MinVersion is the minimal TLS version that is acceptable.
MinVersion string `yaml:"minVersion,omitempty"`
// CipherSuites is a list of TLS cipher suites that are allowed.
CipherSuites []string `yaml:"cipherSuites,omitempty"`
}More about how to use Alpha Config can be found in the documentation.
Example Alpha configuration: https://github.com/oauth2-proxy/oauth2-proxy/blob/955ab6b/contrib/local-environment/oauth2-proxy-alpha-config.yaml
We are committed to Semantic Versioning and usually avoid breaking changes without a major version release.
Advancing Alpha Config toward its Beta stage required this exception, and even for the Alpha Config we try
to keep breaking changes in v7 to a minium. Thank you for understanding the need for this step to prepare
the project for future maintainability and future improvements like structured logging.
Breaking Changes
- Check release notes for v7.14.0
Changes since v7.14.1
- #3314 revert: fix: skip provider button auth only redirect (#3309) (@StefanMarkmann / @tuunit)
- #3315 docs: clarify browser vs API routes for nginx auth_request redirects (@StefanMarkmann)
v7.14.1
Release Highlights
- 🔵 Go1.25.6 and upgrade of dependencies to latest versions
- 🐛 Bug fixes
- AuthOnly now starts the auth flow and send status code 302 if no session exists and skip-provider-button is true
- Fixed static upstream validation issue due to incorrect defaults
Important Notes
Excerpt from v7.14.0 release letter.
https://github.com/oauth2-proxy/oauth2-proxy/releases/v7.14.0
This release introduces a breaking change for Alpha Config users and moves us significantly
closer to removing legacy configuration parameters, making the codebase of OAuth2 Proxy more
future proof and extensible.
From v7.14.0 onward, header injection sources must be explicitly nested. If you
previously relied on squashed fields, update to the new structure before upgrading:
# before v7.14.0
injectRequestHeaders:
- name: X-Forwarded-User
values:
- claim: user
- name: X-Custom-Secret-header
values:
- value: my-super-secret
# v7.14.0 and later
injectRequestHeaders:
- name: X-Forwarded-User
values:
- claimSource:
claim: user
- name: X-Custom-Secret-header
values:
- secretSource:
value: my-super-secretFurthermore, Alpha Config now fully supports configuring the Server struct using YAML.
// Server represents the configuration for the Proxy HTTP(S) configuration.
type Server struct {
// BindAddress is the address on which to serve traffic.
BindAddress string `yaml:"bindAddress,omitempty"`
// SecureBindAddress is the address on which to serve secure traffic.
SecureBindAddress string `yaml:"secureBindAddress,omitempty"`
// TLS contains the information for loading the certificate and key for the
// secure traffic and further configuration for the TLS server.
TLS *TLS `yaml:"tls,omitempty"`
}
// TLS contains the information for loading a TLS certificate and key
// as well as an optional minimal TLS version that is acceptable.
type TLS struct {
// Key is the TLS key data to use.
Key *SecretSource `yaml:"key,omitempty"`
// Cert is the TLS certificate data to use.
Cert *SecretSource `yaml:"cert,omitempty"`
// MinVersion is the minimal TLS version that is acceptable.
MinVersion string `yaml:"minVersion,omitempty"`
// CipherSuites is a list of TLS cipher suites that are allowed.
CipherSuites []string `yaml:"cipherSuites,omitempty"`
}More about how to use Alpha Config can be found in the documentation.
Example Alpha configuration: https://github.com/oauth2-proxy/oauth2-proxy/blob/955ab6b/contrib/local-environment/oauth2-proxy-alpha-config.yaml
We are committed to Semantic Versioning and usually avoid breaking changes without a major version release.
Advancing Alpha Config toward its Beta stage required this exception, and even for the Alpha Config we try
to keep breaking changes in v7 to a minium. Thank you for understanding the need for this step to prepare
the project for future maintainability and future improvements like structured logging.
Breaking Changes
Changes since v7.14.0
- #3309 fix: Return 302 redirect from AuthOnly endpoint when skip-provider-button is true (@StefanMarkmann)
- #3302 fix: static upstreams failing validation due to
passHostHeaderandproxyWebSocketsdefaults being set incorrectly (@sourava01 / @tuunit) - #3312 chore(deps): upgrade to go1.25.6 and latest dependencies (@tuunit)