# CVE-2022-4361: Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC

- Severity: Critical 10.0 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2023-06-30T20:30:50.000Z
- Modified: 2026-06-17T05:20:41.540Z
- Also known as: GHSA-3p62-6fjh-3p5h
- Weaknesses: CWE-79, CWE-81
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak keycloak: no versions given (not affected: 21.1.2)
- org.keycloak:keycloak-services (Maven): before 21.1.2
- redhat keycloak: before 21.1.2
- redhat single_sign-on: from 7.6 before 7.6.4
- redhat openshift_container_platform: 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

## Every score

- redhat: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2022-4361](https://www.cve.org/CVERecord?id=CVE-2022-4361), CVE Terms of Use, modified 2024-11-12
- GitHub Advisory Database: [GHSA-3p62-6fjh-3p5h](https://github.com/advisories/GHSA-3p62-6fjh-3p5h), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-4361](https://nvd.nist.gov/vuln/detail/CVE-2022-4361), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4361 · Whole record: https://cve.day/CVE-2022-4361.json · Rebuilt by cve.day 2026-11-25T22:58:19.460Z
