CVE-2022-4137
MEDIUM 6.1CVSS 3.1Keycloak Cross-site Scripting on OpenID connect login service
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.
- Published
- 25 Sep 2023
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-116CWE-79CWE-81
- Also known as
- GHSA-9hhc-pj4w-w5rv
- Sources
- NVDJSONOSV GHSA-9hhc-pj4w-w5rvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| 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:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| OSV | Maven | org.keycloak:keycloak-parent | < 20.0.5 | 20.0.5 |
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 · 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
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 25 Sep 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2023)