CVE-2022-4361
MEDIUM 6.1CVSS 3.1Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
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
- 7 Jul 2023
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-81
- Also known as
- GHSA-3p62-6fjh-3p5h
- Sources
- NVDJSONOSV GHSA-3p62-6fjh-3p5hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
< 21.1.2 | 21.1.2 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:* |
>= 7.6, < 7.6.4 | 7.6.4 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* |
(no version) | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.11:*:*:*:*:*:*:* |
= 4.11 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.12:*:*:*:*:*:*:* |
= 4.12 | |
| NVD | redhat | openshift_container_platform_for_ibm_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_ibm_linuxone:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platform_for_ibm_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_ibm_linuxone:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| OSV | Maven | org.keycloak:keycloak-services | < 21.1.2 | 21.1.2 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2151618 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a · Patch, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-3p62-6fjh-3p5h · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4361 · ADVISORY
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 7 Jul 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jun 2023)