Open Redirect Affecting org.keycloak:keycloak-services package, versions [21.1.2,23.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.14% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-6128850
  • published15 Dec 2023
  • disclosed14 Dec 2023
  • creditKetec

Introduced: 14 Dec 2023

CVE-2023-6291  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 23.0.0 or higher.

Overview

org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

Affected versions of this package are vulnerable to Open Redirect due to a flaw in the redirect_uri validation logic. An attacker can steal an access token and impersonate other users by bypassing the validation of explicitly allowed hosts.

PoC

redirect_uri=com.someapp.App://oauth2redirect

CVSS Scores

version 3.1