Keycloak: Unauthorized access via improper validation of encrypted SAML assertions
High severity
GitHub Reviewed
Published
Mar 18, 2026
to the GitHub Advisory Database
•
Updated Apr 15, 2026
Package
Affected versions
< 26.2.14
>= 26.3.0, < 26.4.10
>= 26.5.0, < 26.5.5
Patched versions
26.2.14
26.4.10
26.5.5
>= 26.3.0, < 26.4.10
< 26.2.14
>= 26.5.0, < 26.5.5
26.4.10
26.2.14
26.5.5
>= 26.5.0, < 26.5.5
< 26.2.14
>= 26.3.0, < 26.4.10
26.5.5
26.2.14
26.4.10
Description
Published by the National Vulnerability Database
Mar 18, 2026
Published to the GitHub Advisory Database
Mar 18, 2026
Reviewed
Mar 18, 2026
Last updated
Apr 15, 2026
A flaw was found in Keycloak. Keycloak's Security Assertion Markup Language (SAML) broker endpoint does not properly validate encrypted assertions when the overall SAML response is not signed. An attacker with a valid signed SAML assertion can exploit this by crafting a malicious SAML response. This allows the attacker to inject an encrypted assertion for an arbitrary principal, leading to unauthorized access and potential information disclosure.
References