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.
{
"github_reviewed": true,
"github_reviewed_at": "2026-03-18T20:17:21Z",
"cwe_ids": [
"CWE-1287"
],
"nvd_published_at": "2026-03-18T02:16:24Z",
"severity": "HIGH"
}