CVE-2026-9704
highpriority · track · 35EPSS 0.003 · 25 %ileDEEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (13)
Products and version ranges known to be affected.
- Maven org.keycloak:keycloak-server-spi-private< 26.6.3osvUSpkg:maven/org.keycloak/keycloak-server-spi-private
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1708Keycloak: Mehrere SchwachstellenDeutsch2026-05-27csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um seine Privilegien zu erhöhen, um Informationen offenzulegen, um Sicherheitsvorkehrungen zu umgehen und um einen Denial of Service Angriff durchzuführen.
- GHSA-rr5q-3xwr-f323Keycloak Vulnerable to Improper Validation of Specified Quantity in Input2026-05-27ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2026-9704cnnvd
- https://access.redhat.com/security/cve/cve-2026-9704cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2481877cnnvd
- https://access.redhat.com/errata/RHSA-2026:25097enisa_euvd
- https://access.redhat.com/errata/RHSA-2026:25098enisa_euvd
- https://access.redhat.com/errata/RHSA-2026:30049enisa_euvd
- https://access.redhat.com/errata/RHSA-2026:30050enisa_euvd
- https://access.redhat.com/security/cve/CVE-2026-9704enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan