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…

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

0
High
VulnerabilityCVE-2026-3872cvecve-2026-3872
Published: Thu Apr 02 2026 (04/02/2026, 12:37:30 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat build of Keycloak 26.2

Description

A flaw was found in Keycloak. This issue allows an attacker, who controls another path on the same web server, to bypass the allowed path in redirect Uniform Resource Identifiers (URIs) that use a wildcard. A successful attack may lead to the theft of an access token, resulting in information disclosure.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/02/2026, 13:24:14 UTC

Technical Analysis

CVE-2026-3872 is an open redirect vulnerability identified in the Red Hat Build of Keycloak, an open-source identity and access management solution widely used for authentication and authorization. The issue arises due to improper validation of redirect URIs that use wildcard patterns. Specifically, an attacker who controls another path on the same web server can bypass the allowed path restrictions in redirect URIs. This bypass enables the attacker to craft malicious redirect links that appear legitimate but redirect users to untrusted sites controlled by the attacker. The primary risk is the theft of access tokens, which can occur if a user follows such a malicious redirect and the attacker captures the token. Access tokens are critical for maintaining authenticated sessions and authorizing access to protected resources. The vulnerability requires the attacker to have low privileges on the server (PR:L) and user interaction (UI:R) to succeed, but it does not require high complexity or advanced conditions. The vulnerability impacts confidentiality and integrity but does not affect availability. The CVSS v3.1 base score is 7.3, reflecting a high severity level. No known exploits have been reported in the wild yet, but the potential impact is significant given the sensitive nature of access tokens. The vulnerability was reserved in early March 2026 and published in April 2026. No patches or mitigations have been explicitly linked yet, but standard best practices for redirect URI validation and upcoming vendor patches are expected.

Potential Impact

The exploitation of CVE-2026-3872 can lead to the theft of access tokens, which compromises user session confidentiality and integrity. Attackers gaining access to these tokens can impersonate legitimate users, escalate privileges, and access sensitive data or systems protected by Keycloak. This can result in unauthorized data disclosure, potential lateral movement within networks, and undermining of trust in authentication mechanisms. Organizations relying on Keycloak for identity management, especially those handling sensitive or regulated data, face increased risk of data breaches and compliance violations. The vulnerability does not impact system availability directly but can have cascading effects on business operations due to compromised credentials and unauthorized access. The requirement for user interaction means phishing or social engineering may be used to exploit this flaw, increasing the attack surface. Given Keycloak's widespread use in enterprise and cloud environments, the impact is broad and significant.

Mitigation Recommendations

Organizations should immediately review and tighten the validation logic for redirect URIs in their Keycloak deployments, avoiding the use of wildcards where possible. Implement strict allowlists for redirect URIs and ensure that only fully qualified, trusted URLs are accepted. Monitor and audit redirect URI configurations to detect any unauthorized changes or suspicious patterns. Educate users about the risks of clicking on unexpected or suspicious links, especially those involving authentication redirects. Apply any patches or updates released by Red Hat promptly once available. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block suspicious redirect attempts. Additionally, implement multi-factor authentication (MFA) to reduce the risk of token misuse. Conduct regular security assessments and penetration testing focused on authentication flows to identify similar weaknesses. Finally, monitor logs for unusual token usage patterns that may indicate exploitation attempts.

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-03-10T09:25:23.875Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69ce6a44e6bfc5ba1dd993a3

Added to database: 4/2/2026, 1:08:20 PM

Last enriched: 4/2/2026, 1:24:14 PM

Last updated: 4/3/2026, 5:52:39 AM

Views: 19

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