Vulnerabilities

CVE-2026-9704

High 8.8 CVSS 3.1

Description

A flaw was found in Keycloak. An authenticated user with low privileges can exploit this vulnerability by sending an oversized subject_token JSON Web Token (JWT) to the TokenEndpoint. When the token exceeds a 4000-character limit, it is silently dropped, causing the system to fall back to client credentials. This allows the user to gain the permissions of the client's service account, leading to privilege escalation.

Description as published by the source, in English.

Key facts

Published
2026-05-27
Last modified
2026-06-26
Assigned by
secalert@redhat.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 25 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
org.keycloak keycloak-server-spi-private (Maven) < 26.6.3 Affected
org.keycloak keycloak-services (Maven) < 26.6.3 Affected
Redhat Build Of Keycloak all versions listed Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities