What’s Vulnerable › Vulnerabilities
CVE-2022-4361
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-07-07 · updated 2026-06-17
- Weakness: CWE-81
Description
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.
Affected products
- Keycloak: before 21.1.2 — fixed in 21.1.2
- Red Hat OpenShift Container Platform 4.18: 4.11, 4.12
- RedHat Openshift Container Platform For Ibm Linuxone: 4.9, 4.10
- RedHat Openshift Container Platform For Power: 4.9, 4.10
- Red Hat Single Sign-On: from 7.6 before 7.6.4 — fixed in 7.6.4
How to fix
Upgrade to a fixed version: Keycloak 21.1.2; Red Hat Single Sign-On 7.6.4. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2151618
- https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a
- https://bugzilla.redhat.com/show_bug.cgi?id=2151618
- https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a
Get alerted when CVE-2022-4361 or the next vulnerability affects your stack