{"id":"CVE-2022-4361","aliases":["GHSA-3p62-6fjh-3p5h"],"url":"https://o3.security/vulnerability/CVE-2022-4361","summary":"Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC","details":"Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.","published":"2023-07-07T19:57:44.567Z","modified":"2026-08-12T13:33:31.178345Z","cvss":{"score":10,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":"21.1.2"}],"fix":{"url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a","label":"keycloak/keycloak@a1cfe6e"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4361.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4361"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2151618"},{"type":"FIX","url":"https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T13:33:31.178345Z"}}