CVE-2026-7504Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak
- 8.1HighCVSS base score
- 0.64%Exploitation in 30 daysEPSS · top 49% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited. The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect.
Timeline
ID reserved
By redhat
- 19 days later
· 19 days later
Published
- 57 days later
· 57 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| redhat-SADPADP (enrichment) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.64% · top 49% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2.16-1 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-21 – < *
Red Hat · Red Hat build of Keycloak 26.2
- unaffected 26.2-21 – < *
Red Hat · Red Hat build of Keycloak 26.2.16
All versions: unaffected
Red Hat · Red Hat build of Keycloak 26.4
- unaffected 26.4.12-1 – < *
Red Hat · Red Hat build of Keycloak 26.4
- unaffected 26.4-17 – < *
Red Hat · Red Hat build of Keycloak 26.4
- unaffected 26.4-17 – < *
Red Hat · Red Hat build of Keycloak 26.4.12
All versions: unaffected
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.keycloak:keycloak-servicesGHSA-rp95-xpg9-c2cq (opens in a new tab)
What to do
Workaround: To mitigate this vulnerability, Red Hat recommends avoiding the use of wildcard characters in the "Valid Redirect URIs" field for clients within Keycloak. Instead, explicitly list all allowed redirect URIs. Review all client configurations to ensure that wildcards are not used unless absolutely necessary, and if used, ensure that the client application is robust against open redirect vulnerabilities. Changes to client configurations in Keycloak may require a restart or reload of the Keycloak service to take effect, which could impact active user sessions.
References
References7
- RHSA-2026:19594 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:19595 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:19596 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:19597 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-7504 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2464128 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7504.json (opens in a new tab)x_sadp-csaf-vex
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-30890 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rp95-xpg9-c2cq (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-7504)Record last updated .