CVE Tools
Home/Vulnerability/CVE-2026-9704

CVE-2026-9704

Keycloak: keycloak: privilege escalation due to oversized subject_token jwt

Published: May 27, 2026Updated: May 27, 2026 Sources: CVE List NVD
6.8CVSS
MEDIUM

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.

EPSS Score
N/A
CISA KEV
Not in KEV
Exploits
No Known Exploits
Remediation
Workaround Only

CVSS Vector Breakdown

AV:NAC:HPR:LUI:NS:UC:HI:HA:N
Exploitability
AV:NAttack Vector
Network
AC:HAttack Complexity
High
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:NAvailability
None

Weaknesses

Affected Products

Red Hat Build of Keycloak
Red Hat

Exploitability

Workaround Available

References

Timeline

Published
May 27, 2026
Last Updated
May 27, 2026

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-9704 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
AI-powered analysis
Plain-language impact assessment and exploitation scenario
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows