ADVISORIES

GitHub Advisory Database

GHSA-22rm-wp4x-v5cx

Keycloak Server-Side Request Forgery via OIDC token endpoint manipulation

Details

A flaw was found in Keycloak. An authenticated attacker can perform Server-Side Request Forgery (SSRF) by manipulating the client_session_host parameter during refresh token requests. This occurs when a Keycloak client is configured to use the backchannel.logout.url with the application.session.host placeholder. Successful exploitation allows the attacker to make HTTP requests from the Keycloak server’s network context, potentially probing internal networks or internal APIs, leading to information disclosure.

Affected packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-services
From 26.5.0 before 26.6.3 (fixed in 26.6.3)
Mavenorg.keycloak:keycloak-services
All versions before 26.4.13 (fixed in 26.4.13)

References