CVE-2026-9704
Last modified
CVE-2026-9704 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Build Of Keycloak | All versions |
References
- https://access.redhat.com/security/cve/CVE-2026-9704Mitigation, Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2481877Issue Tracking, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-9704?
How severe is CVE-2026-9704?
How do I fix CVE-2026-9704?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-97034When using GCC, building a malicious package that uses cgo c…
- CVE-2026-97035When using Clang or GCC, building a malicious package that u…
- CVE-2026-97036On Darwin, building a malicious package that uses cgo could …
- CVE-2026-97037Building a malicious package that uses cgo could cause arbit…
- CVE-2026-97038Building a malicious package containing ".syso" files or cgo…
- CVE-2026-97039Building a malicious package that uses "#cgo pkg-config:" di…
- CVE-2026-97040Building a package containing a crafted ".syso" file could b…
- CVE-2026-97041Building a malicious package containing "//go:cgo_*" compile…
- CVE-2026-97042Building a malicious package that uses "//go:cgo_import_dyna…
- CVE-2026-97043Building a malicious package that uses cgo could bypass "#cg…
- CVE-2026-97045In childTextNodesAreLiteral, walking up the tree previously …6.1
- CVE-2026-9705A flaw was found in Keycloak's client registration service. …6.5
Are you affected by CVE-2026-9704?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
