{"id":"GHSA-ph32-mphh-f777","aliases":[],"summary":"Traefik Hub OIDC session identifier is predictable, and OIDC and OAuthClientCreds middlewares use unauthenticated encryption and non-cryptographic hashes","published_at":"2026-10-08T12:56:32Z","modified_at":"2026-10-08T12:56:32Z","products":[{"slug":"traefik","name":"Traefik","category":"proxy"}],"rating":{"severity":"high","score":7,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":9,"record_count":1,"vendors":["GitHub"],"details":"## Summary\r\n\r\nThere is a critical severity vulnerability in Traefik Hub's `OIDC` and `OAuthClientCreds` middlewares. When the `OIDC` middleware uses a KV session store, the session identifier placed in the cookie is derived from the issuer and the subject of the user with a non-keyed, non-cryptographic hash, so anyone knowing these two non-secret values can compute the cookie of a user whose session is still live and replay it to be served with that user's identity. In addition, the data the middlewares store outside the gateway (session cookies, state cookies, KV session data and cached OAuth tokens) is encrypted with AES in CTR mode, which provides no integrity check, the CSRF token of the `OIDC` middleware is signed with the non-cryptographic FNV-1a hash, and the token cache key of the `OAuthClientCreds` middleware is an unkeyed FNV-1a hash of the client credentials, which allows crafting credentials that collide with another client and being served its cached access token.\r\n\r\nHub versions earlier than the patched ones are affected, including the versions of unmaintained lines, which will not receive a patch: upgrading to a patched, maintained line is the only remediation.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/hub/releases/tag/v3.20.14\r\n- https://github.com/traefik/hub/releases/tag/v3.21.1\r\n\r\nSession and state cookies, KV sessions and cached tokens written before the upgrade cannot be decoded by the patched versions: users log in once more and the middleware fetches one fresh token. No configuration change is required.\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/hub-issues/issues).","affected_stack":[{"ecosystem":"GitHub","package":"traefik/hub/Traefik Hub","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.20.14"}]}],"fixed":["3.20.14"],"provider":"github-repo-advisories","source":"GHSA-ph32-mphh-f777","relation":"self"},{"ecosystem":"GitHub","package":"traefik/hub/Traefik Hub","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.21.0"},{"fixed":"3.21.1"}]}],"fixed":["3.21.1"],"provider":"github-repo-advisories","source":"GHSA-ph32-mphh-f777","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-ph32-mphh-f777","relation":"self","url":"https://github.com/traefik/hub/security/advisories/GHSA-ph32-mphh-f777","license":"GitHub Terms of Service","published_at":"2026-10-08T12:56:32Z","modified_at":"2026-10-08T12:56:32Z","summary":"Traefik Hub OIDC session identifier is predictable, and OIDC and OAuthClientCreds middlewares use unauthenticated encryption and non-cryptographic hashes","details":"## Summary\r\n\r\nThere is a critical severity vulnerability in Traefik Hub's `OIDC` and `OAuthClientCreds` middlewares. When the `OIDC` middleware uses a KV session store, the session identifier placed in the cookie is derived from the issuer and the subject of the user with a non-keyed, non-cryptographic hash, so anyone knowing these two non-secret values can compute the cookie of a user whose session is still live and replay it to be served with that user's identity. In addition, the data the middlewares store outside the gateway (session cookies, state cookies, KV session data and cached OAuth tokens) is encrypted with AES in CTR mode, which provides no integrity check, the CSRF token of the `OIDC` middleware is signed with the non-cryptographic FNV-1a hash, and the token cache key of the `OAuthClientCreds` middleware is an unkeyed FNV-1a hash of the client credentials, which allows crafting credentials that collide with another client and being served its cached access token.\r\n\r\nHub versions earlier than the patched ones are affected, including the versions of unmaintained lines, which will not receive a patch: upgrading to a patched, maintained line is the only remediation.\r\n\r\n## Patches\r\n\r\n- https://github.com/traefik/hub/releases/tag/v3.20.14\r\n- https://github.com/traefik/hub/releases/tag/v3.21.1\r\n\r\nSession and state cookies, KV sessions and cached tokens written before the upgrade cannot be decoded by the patched versions: users log in once more and the middleware fetches one fresh token. No configuration change is required.\r\n\r\n## For more information\r\n\r\nIf you have any questions or comments about this advisory, please [open an issue](https://github.com/traefik/hub-issues/issues).","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","source":"GHSA-ph32-mphh-f777"}],"affected":[{"ecosystem":"GitHub","package":"traefik/hub/Traefik Hub","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.20.14"}]}],"fixed":["3.20.14"],"provider":"github-repo-advisories","source":"GHSA-ph32-mphh-f777","relation":"self"},{"ecosystem":"GitHub","package":"traefik/hub/Traefik Hub","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.21.0"},{"fixed":"3.21.1"}]}],"fixed":["3.21.1"],"provider":"github-repo-advisories","source":"GHSA-ph32-mphh-f777","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/hub/security/advisories/GHSA-ph32-mphh-f777"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/traefik/hub/security/advisories/GHSA-ph32-mphh-f777"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-ph32-mphh-f777","url":"https://github.com/traefik/hub/security/advisories/GHSA-ph32-mphh-f777","license":"GitHub Terms of Service","modified_at":"2026-10-08T12:56:32Z","relation":"self"}]}
