CVE-2022-4361Redhat Keycloak
Medium 6.1 No auth needed
Follow: this CVE · Redhat · Redhat Keycloak We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Jul 7, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Keycloak.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services |
< 21.1.2 |
21.1.2 |
— |
Per OSV / GitHub Advisories (GHSA-3p62-6fjh-3p5h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | keycloak | < 21.1.2 |
| redhat | single_sign-on | ≥ 7.6 < 7.6.4 |
| redhat | single_sign-on | all |
| redhat | openshift_container_platform | 4.11 |
| redhat | openshift_container_platform | 4.12 |
| redhat | openshift_container_platform_for_ibm_linuxone | 4.9 |
| redhat | openshift_container_platform_for_ibm_linuxone | 4.10 |
| redhat | openshift_container_platform_for_power | 4.9 |
| redhat | openshift_container_platform_for_power | 4.10 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com Patch