High severity · published May 27, 2026
CVE-2026-9704
Keycloak: keycloak: privilege escalation due to oversized subject_token jwt
8.8
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat build of Keycloak 26.4 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat build of Keycloak 26.6 · Red Hat
All versions, or not specified · source: vendor
BO
Build OF Keycloak · Redhat
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-9704
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-9704
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:25097
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:25098
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30049
access.redhat.com
https://access.redhat.com/errata/RHSA-2026:30050
Mitigation
https://access.redhat.com/security/cve/CVE-2026-9704
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2481877
More from Red Hat build of Keycloak 26.4
9.8
CVE-2026-16442
Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction
9.1
CVE-2026-18963
Keycloak-services: keycloak-services: unauthenticated account takeover via reset-credentials flow bypass
9.1
CVE-2026-16443
Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation
8.8
CVE-2026-15572
Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
8.1
CVE-2026-74909
Keycloak-services: keycloak-services: incomplete fix for cve-2026-15573 allows policy enforcer bypass via percent-encoded uri segments
