# CVE-2022-4137: Keycloak: reflected xss attack

- Severity: High 8.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- 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): 1.19%, higher than 68% of CVEs (2026-12-02)
- Published: 2023-03-01T17:38:56.000Z
- Modified: 2026-06-17T05:20:03.403Z
- Also known as: GHSA-9hhc-pj4w-w5rv
- Weaknesses: CWE-79, CWE-81, CWE-116
- Assigned by: redhat

## Description

A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling. This issue allows a malicious link to insert an arbitrary URI into a Keycloak error page. This flaw requires a user or administrator to interact with a link in order to be vulnerable. This may compromise user details, allowing it to be changed or collected by an attacker.

(As written by CVE List.)

## Affected

- keycloak-core: 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 *)
- org.keycloak:keycloak-parent (Maven): before 20.0.5
- redhat keycloak: no versions given
- redhat single_sign-on: 7.6

## Every score

- redhat: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- 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://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:1049> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2022-4137> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2148496> (issue-tracking, vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-9hhc-pj4w-w5rv> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4137> (advisory)
- <https://github.com/keycloak/keycloak/pull/16774> (web)
- <https://github.com/keycloak/keycloak/commit/30d0e9d22dae51392e5a3748a1c68c116667359a> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2022-4137](https://www.cve.org/CVERecord?id=CVE-2022-4137), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9hhc-pj4w-w5rv](https://github.com/advisories/GHSA-9hhc-pj4w-w5rv), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-4137](https://nvd.nist.gov/vuln/detail/CVE-2022-4137), Public domain, modified 2026-06-17

---

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