CVE-2022-4137

HIGH

Keycloak < 20.0.5 - Reflected Cross-Site Scripting via OAuth OOB Endpoint

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2022-4137. PoCs published by shoucheng3.

AI-analyzed exploit summary This repository appears to be a fork or snapshot of the Keycloak project with no explicit exploit code. The provided files include standard Keycloak source code and a setup script, but no proof-of-concept exploit for CVE-2022-4137 is present.

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.

Exploits (1)

nomisec STUB
by shoucheng3 · poc
https://github.com/shoucheng3/keycloak__keycloak_CVE-2022-4137_20-0-3

This repository appears to be a fork or snapshot of the Keycloak project with no explicit exploit code. The provided files include standard Keycloak source code and a setup script, but no proof-of-concept exploit for CVE-2022-4137 is present.

Classification
Stub 90%
Attack Type
Other
Complexity
Complex
Reliability
Theoretical
Target: Keycloak
No auth needed
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2023:1043
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2023:1044
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2023:1045
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2023:1049
Vendor Advisory vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2022-4137
Issue Tracking, Vendor Advisory issue-tracking x_refsource_redhat
https://bugzilla.redhat.com/show_bug.cgi?id=2148496

Scores

CVSS v3 8.1
EPSS 0.0053
EPSS Percentile 67.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Details

CWE
CWE-81 CWE-79
Status published
Products (3)
org.keycloak/keycloak-parent 0 - 20.0.5Maven
redhat/keycloak
redhat/single_sign-on 7.6
Published Sep 25, 2023
Tracked Since Feb 18, 2026