cve.bz

CVE-2026-7504 redhat build of keycloak: Open Redirect

8.1 highEPSS 0.6%Fix available

High (8.1) in redhat build of keycloak. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-services 26.6.2.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-7504 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-7504?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-7504?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-7504 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-7504

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-7504](https://cve.bz/cve/badge/CVE-2026-7504.svg)](https://cve.bz/cve/CVE-2026-7504)

HTML:

<a href="https://cve.bz/cve/CVE-2026-7504"><img src="https://cve.bz/cve/badge/CVE-2026-7504.svg" alt="CVE-2026-7504"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat build of Keycloak 26.226.2.16-1
Red Hat build of Keycloak 26.226.2-21
Red Hat build of Keycloak 26.426.4.12-1
Red Hat build of Keycloak 26.426.4-17

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rp95-xpg9-c2cqMavenorg.keycloak:keycloak-services<26.6.226.6.2

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Moderate impact flaw in Keycloak allows for open redirection when a client is configured with a wildcard in its Valid Redirect URIs. An attacker could craft a malicious URL that, upon user interaction, bypasses validation and redirects to arbitrary locations within the domain, potentially leading to information disclosure or further attacks. This issue specifically affects deployments where clients utilize wildcard redirect URIs, requiring a specific configuration and user engagement for exploitation.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat build of Keycloak 26.2rhbk/keycloak-operator-bundle:26.2.16-1Fixed 2026-05-20RHSA-2026:19595
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9:26.2-21Fixed 2026-05-20RHSA-2026:19595
Red Hat build of Keycloak 26.2rhbk/keycloak-rhel9-operator:26.2-21Fixed 2026-05-20RHSA-2026:19595
Red Hat build of Keycloak 26.2.16rhbk/keycloak-rhel9-operatorFixed 2026-05-20RHSA-2026:19594
Red Hat build of Keycloak 26.4rhbk/keycloak-operator-bundle:26.4.12-1Fixed 2026-05-20RHSA-2026:19597
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9:26.4-17Fixed 2026-05-20RHSA-2026:19597
Red Hat build of Keycloak 26.4rhbk/keycloak-rhel9-operator:26.4-17Fixed 2026-05-20RHSA-2026:19597
Red Hat build of Keycloak 26.4.12rhbk/keycloak-rhel9-operatorFixed 2026-05-20RHSA-2026:19596

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-7504.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON