CVEBrief

Home / Red Hat / Red Hat build of Keycloak 26.4 / CVE-2026-9704

CVE-2026-9704: is it exploited, and which versions of Red Hat build of Keycloak 26.4 are affected and fixed?

CVE-2026-9704 is a quantity not validated vulnerability in Red Hat build of Keycloak 26.4. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: org.keycloak:keycloak-server-spi-private before 26.6.3 and org.keycloak:keycloak-services before 26.6.3 (GitHub advisory GHSA-rr5q-3xwr-f323). Fixed in 26.6.3 (GitHub advisory GHSA-rr5q-3xwr-f323). Severity: Medium (6.8, CVSS 3.1, from redhat).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:11 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 10:38 UTC
Affected
org.keycloak:keycloak-server-spi-private before 26.6.3 and org.keycloak:keycloak-services before 26.6.3
GitHub advisory GHSA-rr5q-3xwr-f323
Fixed in
26.6.3
GitHub advisory GHSA-rr5q-3xwr-f323
Severity
Medium 6.8
CVSS 3.1 from redhat
Exploit odds (EPSS)
0.32% in 30 days
higher than 27% of CVEs; FIRST, December 2, 2026

What is CVE-2026-9704?

Keycloak: keycloak: privilege escalation due to oversized subject_token jwt

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.

From the CVE record by redhat, last updated June 26, 2026, 06:46 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Red HatRed Hat build of Keycloak 26.4 rhbk/keycloak-operator-bundleall versions (default)26.4.13-1
Red HatRed Hat build of Keycloak 26.4 rhbk/keycloak-rhel9all versions (default)26.4-19
Red HatRed Hat build of Keycloak 26.4 rhbk/keycloak-rhel9-operatorall versions (default)26.4-19
Red HatRed Hat build of Keycloak 26.4.13 rhbk/keycloak-rhel9not stated
Red HatRed Hat build of Keycloak 26.6 rhbk/keycloak-operator-bundleall versions (default)26.6.3-3
Red HatRed Hat build of Keycloak 26.6 rhbk/keycloak-rhel9all versions (default)26.6-6
Red HatRed Hat build of Keycloak 26.6 rhbk/keycloak-rhel9-operatorall versions (default)26.6-6
Red HatRed Hat build of Keycloak 26.6.3 rhbk/keycloak-rhel9not stated

As the CVE record by redhat states it, last updated June 26, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.keycloak:keycloak-server-spi-private< 26.6.326.6.3GHSA-rr5q-3xwr-f323
Mavenorg.keycloak:keycloak-services< 26.6.326.6.3GHSA-rr5q-3xwr-f323

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 1, 2026. Summary: Keycloak Vulnerable to Improper Validation of Specified Quantity in Input.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
redhatbuild of keycloakall versionsapplication

NVD analysis (status Modified), last modified June 26, 2026, 08:16 UTC.

How severe is CVE-2026-9704?

ScoreVersionVectorSource
Medium 6.8CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Nredhat
High 8.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-9704 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, May 27, 2026)
EPSS
0.32% probability of exploitation activity in the next 30 days, percentile 27.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Is there a workaround? (from the CVE record)

To prevent the silent dropping of oversized `subject_token` JWTs, configure Keycloak to enforce strict parameter validation. This involves setting the `fail-fast` parameter to `true` for the `TokenEndpoint` configuration, which will cause requests with oversized parameters to be rejected explicitly rather than silently processed with reduced privileges. Consult Keycloak documentation for the exact method to modify these settings. A restart of the Keycloak service may be necessary for the changes to apply.

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
May 27, 2026
Published
May 27, 2026, 12:56 UTC
CVE record updated
June 26, 2026, 06:46 UTC by redhat
NVD
Modified, last modified June 26, 2026, 08:16 UTC
Last checked
CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Red Hat build of Keycloak 26.4?

Every CVE in Red Hat build of Keycloak 26.4

Questions about CVE-2026-9704

Is CVE-2026-9704 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Red Hat build of Keycloak 26.4 are affected by CVE-2026-9704?

org.keycloak:keycloak-server-spi-private before 26.6.3 and org.keycloak:keycloak-services before 26.6.3, per the GitHub advisory GHSA-rr5q-3xwr-f323. The tables above give every range the sources list.

Which version fixes CVE-2026-9704?

26.6.3, per the GitHub advisory GHSA-rr5q-3xwr-f323. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-9704?

Medium (6.8, CVSS 3.1, from redhat). The severity table above shows each score with its source.

Where is the official record of CVE-2026-9704?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.