# CVE-2022-1438: Keycloak: xss on impersonation under specific circumstances

- Severity: Medium 6.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/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.78%, higher than 52% of CVEs (2026-11-29)
- Published: 2023-03-01T16:18:55.000Z
- Modified: 2026-06-17T04:22:27.793Z
- Also known as: GHSA-w354-2f3c-qvg9
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A flaw was found in Keycloak. Under specific circumstances, HTML entities are not sanitized during user impersonation, resulting in a Cross-site scripting (XSS) vulnerability.

(As written by CVE List.)

## Affected

- keycloak-services: no versions given
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.6-1.redhat_00001.1.el7sso before *; from 0:18.0.6-1.redhat_00001.1.el8sso before *; from 0:18.0.6-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-20 before *)
- org.keycloak:keycloak-services (Maven): up to 21.0.0
- redhat keycloak: no versions given

## Every score

- redhat: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:1043> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1044> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1045> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1047> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:1049> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2022-1438> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2031904> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-w354-2f3c-qvg9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1438> (advisory)
- <https://access.redhat.com/security/cve/cve-2022-1438> (web)
- <https://github.com/keycloak/keycloak> (package)
- <https://github.com/keycloak/keycloak/blob/48835576daa158443f69917ac309e1a7c951bc87/services/src/main/java/org/keycloak/authentication/AuthenticationProcessor.java#L1045> (web)

## Sources

- CVE List: [CVE-2022-1438](https://www.cve.org/CVERecord?id=CVE-2022-1438), CVE Terms of Use, modified 2024-09-24
- GitHub Advisory Database: [GHSA-w354-2f3c-qvg9](https://github.com/advisories/GHSA-w354-2f3c-qvg9), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-1438](https://nvd.nist.gov/vuln/detail/CVE-2022-1438), Public domain, modified 2026-06-17

---

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