keycloak-services is vulnerable to Authentication Bypass
81
CVE Score
High
Authentication Bypass
keycloak-services validates JWT assertions in the JWT Authorization Grant flow and related JWT public-key client authenticators without restricting the signature to asymmetric algorithms. A client holding valid credentials can forge an assertion signed with a symmetric algorithm such as HS256, causing the server to verify the signature using known public key material as the HMAC secret. This algorithm confusion bypasses signature verification and lets the caller mint access tokens that impersonate any federated user linked to the affected identity provider. The fix rejects symmetric algorithms in the public-key JWT validators and only permits them for the dedicated client-secret-jwt authentication flow.
Upgrade the org.keycloak:keycloak-services library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your realm has a JWT Authorization Grant or JWT-based federated identity provider configured.
26.0.0 - 26.6.3
Fixed in 26.6.4keycloak-services is vulnerable to Authentication Bypass in versions 26.0.0 - 26.6.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.