Improper Validation of Specified Quantity in Input Affecting org.keycloak:keycloak-services package, versions [,26.6.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (24th 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 IDSNYK-JAVA-ORGKEYCLOAK-17139471
  • published3 Jun 2026
  • disclosed27 May 2026
  • creditFilip Jovanov

Introduced: 27 May 2026

CVE-2026-9704  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.6.3 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 Improper Validation of Specified Quantity in Input in the TokenEndpoint endpoint when an oversized subject_token JWT exceeding 4000 characters is submitted. An attacker can gain unintended service account permissions by exploiting the fallback to client credentials that occurs when the oversized token is silently dropped.

Workaround

This vulnerability can be mitigated by configuring strict parameter validation, specifically by setting the fail-fast parameter to true for the TokenEndpoint configuration, which will explicitly reject requests with oversized parameters.

CVSS Base Scores

version 4.0
version 3.1