Live threats

All CVEs / Redhat

CVE-2022-4137Redhat Keycloak

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 56
Auth required
No
Published
Sep 25, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-81, CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Keycloak.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.keycloak:keycloak-parent < 20.0.5 20.0.5 —

Per OSV / GitHub Advisories (GHSA-9hhc-pj4w-w5rv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatkeycloakall
redhatsingle_sign-on7.6

Official sources

References

Links published by the sources. Open them with care.