Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 60%

CVE-2026-7504: URL Redirection to Untrusted Site ('Open Redirect') in Red Hat Red Hat build of Keycloak 26.2

0
High
VulnerabilityCVE-2026-7504cvecve-2026-7504
Published: 05/19/2026 (05/19/2026, 11:01:19 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected software

redhat/keycloak
pkg:rpm/redhat/keycloak
Affected versions
<26.2.16

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:40:36 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses