CVE-2026-7504: URL Redirection to Untrusted Site ('Open Redirect') in Red Hat Red Hat build of Keycloak 26.2
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.
AI Analysis
Technical Summary
This vulnerability affects Red Hat build of Keycloak versions prior to 26.2.16 and involves improper validation of redirect URLs when a wildcard is used in the "Valid Redirect URIs" configuration. The root cause is a mismatch between how Keycloak and the underlying Java URI parser handle the user-info part of URLs with multiple '@' characters. Java's URI parser fails to extract user-info correctly, causing Keycloak's validation to fall back to wildcard matching and incorrectly allow malicious redirects. This can lead to open redirect attacks, potentially exposing sensitive information or enabling further attacks. The vulnerability has a CVSS 3.1 score of 8.1 (high severity) and requires user interaction for exploitation. Red Hat has released version 26.2.16 to address this issue.
Potential Impact
Successful exploitation allows attackers to redirect users to unauthorized external URLs despite validation controls, potentially exposing sensitive information within the domain or facilitating additional attacks. The vulnerability impacts confidentiality and integrity but does not affect availability. It requires user interaction and specifically targets Keycloak clients configured with wildcard redirect URIs.
Mitigation Recommendations
Red Hat has released an official security update in Red Hat build of Keycloak version 26.2.16 that fixes this vulnerability. Users should upgrade to version 26.2.16 or later. Before applying the update, back up existing installations including applications, configuration files, and databases. No other mitigations are specified by the vendor. Patch status is confirmed by Red Hat advisories RHSA-2026:19594 and RHSA-2026:19595.
CVE-2026-7504: URL Redirection to Untrusted Site ('Open Redirect') in Red Hat Red Hat build of Keycloak 26.2
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.
CVSS v3.1
Score 8.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability affects Red Hat build of Keycloak versions prior to 26.2.16 and involves improper validation of redirect URLs when a wildcard is used in the "Valid Redirect URIs" configuration. The root cause is a mismatch between how Keycloak and the underlying Java URI parser handle the user-info part of URLs with multiple '@' characters. Java's URI parser fails to extract user-info correctly, causing Keycloak's validation to fall back to wildcard matching and incorrectly allow malicious redirects. This can lead to open redirect attacks, potentially exposing sensitive information or enabling further attacks. The vulnerability has a CVSS 3.1 score of 8.1 (high severity) and requires user interaction for exploitation. Red Hat has released version 26.2.16 to address this issue.
Potential Impact
Successful exploitation allows attackers to redirect users to unauthorized external URLs despite validation controls, potentially exposing sensitive information within the domain or facilitating additional attacks. The vulnerability impacts confidentiality and integrity but does not affect availability. It requires user interaction and specifically targets Keycloak clients configured with wildcard redirect URIs.
Mitigation Recommendations
Red Hat has released an official security update in Red Hat build of Keycloak version 26.2.16 that fixes this vulnerability. Users should upgrade to version 26.2.16 or later. Before applying the update, back up existing installations including applications, configuration files, and databases. No other mitigations are specified by the vendor. Patch status is confirmed by Red Hat advisories RHSA-2026:19594 and RHSA-2026:19595.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-04-30T14:48:04.317Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-7504","vendor":"Red Hat"}]
Threat ID: 6a0c47d9ec166c07b097b835
Added to database: 05/19/2026, 11:22:01 UTC
Last enriched: 07/15/2026, 09:40:36 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.