A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7504

CVE-2026-7504: Keycloak Auth Bypass Vulnerability

CVE-2026-7504 is an authentication bypass flaw in Keycloak that allows attackers to redirect users to unauthorized URLs through malicious requests. This post covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-7504 Overview

CVE-2026-7504 is an open redirect vulnerability in Keycloak's URL validation logic during redirect operations. Attackers can craft a malicious request that bypasses validation and redirects authenticated users to attacker-controlled URLs. The flaw affects Keycloak clients configured with a wildcard (*) in the Valid Redirect URIs field and requires user interaction to exploit. Successful exploitation can expose sensitive information within the domain or facilitate phishing and follow-on attacks against authenticated sessions. The weakness is classified under CWE-601: URL Redirection to Untrusted Site.

Critical Impact

Attackers can redirect users from a trusted Keycloak identity provider to malicious destinations, enabling credential theft, token leakage, and session hijacking against single sign-on workflows.

Affected Products

  • Red Hat build of Keycloak (see referenced Red Hat Security Advisories)
  • Keycloak clients configured with a wildcard (*) in Valid Redirect URIs
  • Applications relying on Keycloak for OAuth 2.0 / OpenID Connect redirect validation

Discovery Timeline

  • 2026-05-19 - CVE-2026-7504 published to NVD
  • 2026-05-20 - Last updated in NVD database

Technical Details for CVE-2026-7504

Vulnerability Analysis

The vulnerability stems from a parsing discrepancy between Keycloak's URL validation logic and the underlying Java URI implementation. When a redirect URL contains multiple @ characters in the user-info component, Java's URI parser fails to extract the user-info segment correctly. The parser leaves only the raw authority field, which Keycloak then evaluates with its wildcard comparison logic. Because the validation routine cannot detect the malformed user-info, it falls back to permissive matching and approves the malicious destination.

This is a classic differential parsing flaw. Two components in the same trust chain interpret the same input differently, and the security decision is made against the more permissive interpretation. The result is an open redirect that bypasses the intended allowlist enforced by Valid Redirect URIs.

Root Cause

The root cause is inconsistent handling of the user-info component of a URL between Keycloak's validator and java.net.URI. Crafted inputs with multiple @ characters trigger this divergence. Combined with a wildcard configuration in Valid Redirect URIs, the validator approves URLs whose effective authority points to an attacker domain.

Attack Vector

An attacker constructs a phishing link pointing to a legitimate Keycloak authorization endpoint with a malicious redirect_uri parameter. The redirect URI uses multiple @ characters in the user-info portion so that Keycloak interprets the host as a permitted value while Java's parser, and ultimately the browser, resolves the request to the attacker's domain. The victim authenticates against the trusted Keycloak instance, and Keycloak then redirects the browser, along with any authorization code or token fragment, to the attacker.

No verified public proof-of-concept code is available. Refer to the Red Hat CVE Analysis for CVE-2026-7504 and Red Hat Bug Report #2464128 for vendor technical details.

Detection Methods for CVE-2026-7504

Indicators of Compromise

  • Authorization requests to Keycloak with redirect_uri values containing multiple @ characters in the user-info component.
  • Outbound HTTP 302 responses from Keycloak directing clients to domains outside the organization's known application inventory.
  • Authentication events immediately followed by token or authorization code delivery to unfamiliar external hosts.

Detection Strategies

  • Inspect Keycloak access logs and reverse proxy logs for redirect_uri query parameters matching the pattern .*@.*@.* or otherwise containing more than one @ character.
  • Audit Keycloak client configurations for any client with * in Valid Redirect URIs, which is a prerequisite for exploitation.
  • Correlate OAuth 2.0 / OIDC flows with downstream HTTP referrer data to flag redirects landing on domains not present in the application allowlist.

Monitoring Recommendations

  • Forward Keycloak event logs and HTTP access logs to a centralized log platform and alert on anomalous redirect_uri values.
  • Monitor for spikes in authorization requests that include encoded @ characters (%40) in the redirect parameter.
  • Track user-agent and geolocation patterns associated with successful logins followed by external redirects to detect targeted phishing campaigns.

How to Mitigate CVE-2026-7504

Immediate Actions Required

  • Replace wildcard (*) entries in Valid Redirect URIs with explicit, fully qualified URLs for every Keycloak client.
  • Apply the fixed Keycloak packages provided in the Red Hat security advisories referenced below.
  • Invalidate active sessions and rotate any client secrets or signing keys if exploitation is suspected.

Patch Information

Red Hat has released patched builds of Keycloak. Apply the updates documented in RHSA-2026:19594, RHSA-2026:19595, RHSA-2026:19596, and RHSA-2026:19597. Confirm fixed versions against the Red Hat CVE Analysis for CVE-2026-7504 before redeploying.

Workarounds

  • Remove wildcard redirect URIs and enforce exact-match URLs in every client configuration as an immediate hardening step.
  • Deploy a reverse proxy or web application firewall rule to reject redirect_uri parameters containing more than one @ character or encoded equivalents.
  • Require user re-authentication for sensitive operations to limit the value of any redirected session artifacts.
bash
# Configuration example: replace wildcard redirect URIs with exact matches using kcadm
kcadm.sh update clients/<CLIENT_UUID> \
  -r <REALM> \
  -s 'redirectUris=["https://app.example.com/callback","https://app.example.com/silent-renew"]'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechKeycloak

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • Red Hat Security Advisory RHSA-2026:19594

  • Red Hat Security Advisory RHSA-2026:19595

  • Red Hat Security Advisory RHSA-2026:19596

  • Red Hat Security Advisory RHSA-2026:19597

  • Red Hat CVE Analysis CVE-2026-7504

  • Red Hat Bug Report #2464128
  • Related CVEs
  • CVE-2026-9087: Keycloak Auth Bypass Vulnerability

  • CVE-2026-7571: Keycloak Auth Bypass Vulnerability

  • CVE-2026-7507: Keycloak Auth Bypass Vulnerability

  • CVE-2026-4630: Keycloak Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English