git.iko.soy/typeable/oauth2-proxy
on master help sign in
release v7.15.2 (#3413)

* update to release version v7.15.2 * doc: add changelog entry for v7.15.2 Signed-off-by: Jan Larwig <jan@larwig.com> * fix(deps): override webpackbar to v7 for webpack 5.106.0 compatibility As outlined in https://github.com/facebook/docusaurus/issues/11923 Signed-off-by: Jan Larwig <jan@larwig.com> * chore: fix local test files for nginx setup Signed-off-by: Jan Larwig <jan@larwig.com> --------- Signed-off-by: Jan Larwig <jan@larwig.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jan Larwig <jan@larwig.com>

commit5961fd99b42c3625b8ef08690d38be5cb37f44b0 authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> dateTue 14 Apr 2026, 13:12 (6 months ago) parentbdfde72
13 files changed+107−66
CHANGELOG.md+43−1 contrib/local-environment/dex.yaml+14−13 contrib/local-environment/docker-compose-alpha-config.yaml+1−1 contrib/local-environment/docker-compose-gitea.yaml+1−1 contrib/local-environment/docker-compose-keycloak.yaml+5−5 contrib/local-environment/docker-compose-nginx.yaml+3−3 contrib/local-environment/docker-compose-traefik.yaml+1−1 contrib/local-environment/docker-compose.yaml+1−1 contrib/local-environment/nginx.conf+32−37 contrib/local-environment/oauth2-proxy-nginx.cfg+1−1 docs/docs/installation.md+1−1 docs/package.json+3 docs/versioned_docs/version-7.15.x/installation.md+1−1
CHANGELOG.md+43−1
@@ -6,6 +6,48 @@
66
77## Breaking Changes
88
9+## Changes since v7.15.2
10+
11+# V7.15.2
12+
13+## Release Highlights
14+
15+- 🔵 Golang version upgrade to v1.25.9
16+ - Upgrade of all dependencies to their latest versions
17+ - [CVE-2026-34986](https://nvd.nist.gov/vuln/detail/CVE-2026-34986)
18+ - [CVE-2026-32281](https://nvd.nist.gov/vuln/detail/CVE-2026-32281)
19+ - [CVE-2026-32289](https://nvd.nist.gov/vuln/detail/CVE-2026-32289)
20+ - [CVE-2026-32288](https://nvd.nist.gov/vuln/detail/CVE-2026-32288)
21+ - [CVE-2026-32280](https://nvd.nist.gov/vuln/detail/CVE-2026-32280)
22+ - [CVE-2026-32282](https://nvd.nist.gov/vuln/detail/CVE-2026-32282)
23+ - [CVE-2026-32283](https://nvd.nist.gov/vuln/detail/CVE-2026-32283)
24+- 🕵️‍♀️ Vulnerabilities have been addressed
25+
26+## Important Notes
27+
28+We have had security audits performed on OAuth2 Proxy in the past couple of weeks and as a result we have fixed
29+several CRITICAL vulnerabilities.
30+
31+The security vulnerabilities include multiple authentication bypasses and a potential session fixation attack.
32+For more details and to identify if you are effects, we urge all users of OAuth2 Proxy to read the security
33+disclosures.
34+
35+- (Critical) [GHSA-5hvv-m4w4-gf6v](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5hvv-m4w4-gf6v) fix: health check user-agent authentication bypass
36+- (Critical) [GHSA-7x63-xv5r-3p2x](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x) fix: authentication bypass via X-Forwarded-Uri header spoofing
37+- (High) [GHSA-pxq7-h93f-9jrg](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-pxq7-h93f-9jrg) fix: fragment evaluation as part of the allowed routes
38+- (Moderate) [GHSA-c5c4-8r6x-56w3](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-c5c4-8r6x-56w3) fix: email validation bypass via malformed multi-@ email claims
39+
40+Furthermore, for improving the security of OAuth2 Proxy we introduced a new flag `--trusted-proxy-ip` that allows users
41+to explicitly specify trusted reverse proxy IPs for the `X-Forwarded-*` headers. This is an important step to prevent
42+potential header spoofing attacks and to ensure that OAuth2 Proxy only trusts headers from known and trusted sources.
43+We highly recommend users to review their deployment architecture and consider using this flag to enhance the security
44+of their OAuth2 Proxy instances. Check the docs for more details: https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview#proxy-options
45+
46+Furthermore, we want to thank everyone who contributed to the audits and reported potential issues to make open source
47+software like OAuth2 Proxy more secure for everyone.
48+
49+## Breaking Changes
50+
951## Changes since v7.15.1
1052
1153- [#3411](https://github.com/oauth2-proxy/oauth2-proxy/pull/3411) chore(deps): update gomod dependencies (@tuunit)
@@ -13,8 +55,8 @@
1355- [GHSA-f24x-5g9q-753f](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-f24x-5g9q-753f) fix: clear session cookie at beginning of signinpage handler (@fnoehWM / @bella-WI / @tuunit)
1456- [GHSA-5hvv-m4w4-gf6v](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5hvv-m4w4-gf6v) fix: health check user-agent authentication bypass (@tuunit)
1557- [GHSA-7x63-xv5r-3p2x](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x) fix: authentication bypass via X-Forwarded-Uri header spoofing (@tuunit)
16−- [GHSA-c5c4-8r6x-56w3](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-c5c4-8r6x-56w3) fix: email validation bypass via malformed multi-@ email claims (@tuunit)
1758- [GHSA-pxq7-h93f-9jrg](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-pxq7-h93f-9jrg) fix: fragment evaluation as part of the allowed routes (@tuunit)
59+- [GHSA-c5c4-8r6x-56w3](https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-c5c4-8r6x-56w3) fix: email validation bypass via malformed multi-@ email claims (@tuunit)
1860
1961# V7.15.1
2062
contrib/local-environment/dex.yaml+14−13
@@ -6,7 +6,7 @@ storage:
66 type: etcd
77 config:
88 endpoints:
9− - http://etcd:2379
9+ - http://etcd:2379
1010 namespace: dex/
1111web:
1212 http: 0.0.0.0:5556
@@ -16,17 +16,18 @@ expiry:
1616 signingKeys: "4h"
1717 idTokens: "1h"
1818staticClients:
19−- id: oauth2-proxy
20− redirectURIs:
21− # These redirect URIs point to the `--redirect-url` for OAuth2 proxy.
22− - 'http://oauth2-proxy.localtest.me:4180/oauth2/callback' # For basic proxy example.
23− - 'http://oauth2-proxy.oauth2-proxy.localhost/oauth2/callback' # For nginx and traefik example.
24− name: 'OAuth2 Proxy'
25− secret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK
19+ - id: oauth2-proxy
20+ redirectURIs:
21+ # These redirect URIs point to the `--redirect-url` for OAuth2 proxy.
22+ - "http://oauth2-proxy.localtest.me:4180/oauth2/callback" # For basic proxy example.
23+ - "http://oauth2-proxy.localtest.me:8080/oauth2/callback" # For nginx example.
24+ - "http://oauth2-proxy.oauth2-proxy.localhost/oauth2/callback" # For traefik example.
25+ name: "OAuth2 Proxy"
26+ secret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK
2627enablePasswordDB: true
2728staticPasswords:
28−- email: "admin@example.com"
29− # bcrypt hash of the string "password"
30− hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
31− username: "admin"
32− userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
29+ - email: "admin@example.com"
30+ # bcrypt hash of the string "password"
31+ hash: "$2a$10$2b2cU8CPhOTaGrs1HRQuAueS7JTT5ZHsHSzYiFPm1leZck7Mc8T4W"
32+ username: "admin"
33+ userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
contrib/local-environment/docker-compose-alpha-config.yaml+1−1
@@ -14,7 +14,7 @@ version: "3.0"
1414services:
1515 oauth2-proxy:
1616 container_name: oauth2-proxy
17− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
17+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
1818 command: --config /oauth2-proxy.cfg --alpha-config /oauth2-proxy-alpha-config.yaml
1919 hostname: oauth2-proxy
2020 volumes:
contrib/local-environment/docker-compose-gitea.yaml+1−1
@@ -14,7 +14,7 @@ version: '3.0'
1414services:
1515 oauth2-proxy:
1616 container_name: oauth2-proxy
17− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
17+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
1818 command: --config /oauth2-proxy.cfg
1919 hostname: oauth2-proxy
2020 volumes:
contrib/local-environment/docker-compose-keycloak.yaml+5−5
@@ -10,11 +10,11 @@
1010#
1111# Access http://oauth2-proxy.localtest.me:4180 to initiate a login cycle using user=admin@example.com, password=password
1212# Access http://keycloak.localtest.me:9080 with the same credentials to check out the settings
13−version: '3.0'
13+version: "3.0"
1414services:
1515 oauth2-proxy:
1616 container_name: oauth2-proxy
17− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
17+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
1818 command: --config /oauth2-proxy.cfg
1919 hostname: oauth2-proxy
2020 volumes:
@@ -43,9 +43,9 @@ services:
4343 image: keycloak/keycloak:25.0
4444 hostname: keycloak
4545 command:
46− - 'start-dev'
47− - '--http-port=9080'
48− - '--import-realm'
46+ - "start-dev"
47+ - "--http-port=9080"
48+ - "--import-realm"
4949 volumes:
5050 - ./keycloak:/opt/keycloak/data/import
5151 environment:
contrib/local-environment/docker-compose-nginx.yaml+3−3
@@ -22,12 +22,12 @@
2222version: "3.0"
2323services:
2424 oauth2-proxy:
25− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
26− ports:
27− - 4180:4180/tcp
25+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
26+ ports: []
2827 hostname: oauth2-proxy
2928 container_name: oauth2-proxy
3029 command: --config /oauth2-proxy.cfg
30+ restart: unless-stopped
3131 volumes:
3232 - "./oauth2-proxy-nginx.cfg:/oauth2-proxy.cfg"
3333 networks:
contrib/local-environment/docker-compose-traefik.yaml+1−1
@@ -23,7 +23,7 @@ version: '3.0'
2323services:
2424
2525 oauth2-proxy:
26− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
26+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
2727 ports: []
2828 hostname: oauth2-proxy
2929 volumes:
contrib/local-environment/docker-compose.yaml+1−1
@@ -13,7 +13,7 @@ version: "3.0"
1313services:
1414 oauth2-proxy:
1515 container_name: oauth2-proxy
16− image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.1
16+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.2
1717 command: --config /oauth2-proxy.cfg
1818 hostname: oauth2-proxy
1919 volumes:
contrib/local-environment/nginx.conf+32−37
@@ -1,49 +1,44 @@
1−# Reverse proxy to oauth2-proxy
2−server {
3− listen 8080;
4− server_name oauth2-proxy.localtest.me;
5−
6− location / {
7− proxy_set_header Host $host;
8− proxy_set_header X-Real-IP $remote_addr;
9− proxy_set_header X-Forwarded-Uri $request_uri;
10−
11− proxy_pass http://oauth2-proxy:4180/;
12− }
13−}
14−
151# Reverse proxy to httpbin
162server {
173 listen 8080;
18− server_name httpbin.localtest.me;
19−
20− auth_request /internal-auth/oauth2/auth;
4+ server_name oauth2-proxy.localtest.me;
5+
6+ location /oauth2/ {
7+ proxy_pass http://oauth2-proxy:4180;
8+ proxy_set_header Host $host;
9+ proxy_set_header X-Real-IP $remote_addr;
10+ proxy_set_header X-Forwarded-Uri $request_uri;
11+ proxy_set_header X-Auth-Request-Redirect $request_uri;
12+ }
2113
22− # On 401, redirect to the sign_in page via a named location
23− # This ensures a proper 302 redirect that browsers will follow
24− error_page 401 = @oauth2_signin;
14+ location = /oauth2/auth {
15+ proxy_pass http://oauth2-proxy:4180;
16+ proxy_set_header Host $host;
17+ proxy_set_header X-Real-IP $remote_addr;
18+ proxy_set_header X-Forwarded-Uri $request_uri;
19+ # nginx auth_request includes headers but not body
20+ proxy_set_header Content-Length "";
21+ proxy_pass_request_body off;
22+ }
2523
2624 location / {
25+ auth_request /oauth2/auth;
26+ error_page 401 = @oauth2_signin;
27+
28+ # pass information via X-User and X-Email headers to backend,
29+ # requires running with --set-xauthrequest flag
30+ auth_request_set $user $upstream_http_x_auth_request_user;
31+ auth_request_set $email $upstream_http_x_auth_request_email;
32+ proxy_set_header X-User $user;
33+ proxy_set_header X-Email $email;
34+
2735 proxy_pass http://httpbin/;
36+ # or "root /path/to/site;" or "fastcgi_pass ..." etc
2837 }
2938
30− # Named location for OAuth2 sign-in redirect
31− # Returns a proper 302 that works with --skip-provider-button
39+ # Named location for handling OAuth2 sign-in redirects
40+ # This ensures the browser receives a proper 302 redirect that it will follow
3241 location @oauth2_signin {
33− return 302 http://oauth2-proxy.localtest.me:8080/oauth2/sign_in?rd=$scheme://$host$request_uri;
34− }
35−
36− # auth_request must be a URI so this allows an internal path to then proxy to
37− # the real auth_request path.
38− # The trailing /'s are required so that nginx strips the prefix before proxying.
39− location /internal-auth/ {
40− internal; # Ensure external users can't access this path
41−
42− # Make sure the OAuth2 Proxy knows where the original request came from.
43− proxy_set_header Host $host;
44− proxy_set_header X-Real-IP $remote_addr;
45− proxy_set_header X-Forwarded-Uri $request_uri;
46−
47− proxy_pass http://oauth2-proxy:4180/;
42+ return 302 /oauth2/sign_in?rd=$scheme://$http_host$request_uri;
4843 }
4944}
contrib/local-environment/oauth2-proxy-nginx.cfg+1−1
@@ -9,7 +9,7 @@ whitelist_domains=[".localtest.me"] # Required to allow redirection back to orig
99# dex provider
1010client_secret="b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK"
1111client_id="oauth2-proxy"
12−redirect_url="http://oauth2-proxy.localtest.me:4180/oauth2/callback"
12+redirect_url="http://oauth2-proxy.localtest.me:8080/oauth2/callback"
1313
1414oidc_issuer_url="http://dex.localtest.me:5556/dex"
1515provider="oidc"
docs/docs/installation.md+1−1
@@ -5,7 +5,7 @@ title: Installation
55
661. Choose how to deploy:
77
8− a. Using a [Prebuilt Binary](https://github.com/oauth2-proxy/oauth2-proxy/releases) (current release is `v7.15.1`)
8+ a. Using a [Prebuilt Binary](https://github.com/oauth2-proxy/oauth2-proxy/releases) (current release is `v7.15.2`)
99
1010 b. Using Go to install the latest release
1111 ```bash
docs/package.json+3
@@ -42,5 +42,8 @@
4242 },
4343 "engines": {
4444 "node": ">=18.0"
45+ },
46+ "overrides" : {
47+ "webpackbar" : "^7.0.0"
4548 }
4649}
docs/versioned_docs/version-7.15.x/installation.md+1−1
@@ -5,7 +5,7 @@ title: Installation
55
661. Choose how to deploy:
77
8− a. Using a [Prebuilt Binary](https://github.com/oauth2-proxy/oauth2-proxy/releases) (current release is `v7.15.1`)
8+ a. Using a [Prebuilt Binary](https://github.com/oauth2-proxy/oauth2-proxy/releases) (current release is `v7.15.2`)
99
1010 b. Using Go to install the latest release
1111 ```bash