The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-3872

CVE-2026-3872: Keycloak Auth Bypass Vulnerability

CVE-2026-3872 is an authentication bypass flaw in Keycloak that allows attackers to bypass redirect URI validation and steal access tokens. This article covers the technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-3872 Overview

A security flaw has been discovered in Keycloak, the popular open-source identity and access management solution. This vulnerability 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 exploitation of this issue may lead to the theft of an access token, resulting in information disclosure and potential account compromise.

Critical Impact

Attackers can bypass redirect URI validation to steal OAuth access tokens, potentially compromising user accounts and sensitive data protected by Keycloak authentication.

Affected Products

  • Keycloak (versions prior to patched releases)
  • Red Hat Single Sign-On (related products covered by RHSA advisories)
  • Red Hat Build of Keycloak

Discovery Timeline

  • April 2, 2026 - CVE-2026-3872 published to NVD
  • April 2, 2026 - Last updated in NVD database

Technical Details for CVE-2026-3872

Vulnerability Analysis

This vulnerability is classified as CWE-601 (URL Redirection to Untrusted Site, also known as Open Redirect). The flaw exists in Keycloak's redirect URI validation logic when wildcard patterns are used in the allowed redirect URI configuration.

Keycloak allows administrators to configure valid redirect URIs for OAuth/OIDC clients using wildcard patterns. However, the path validation logic contains a flaw that can be exploited when an attacker controls another path on the same web server. This allows the attacker to craft a malicious redirect URI that passes validation but redirects users to an attacker-controlled location.

The attack requires network access with low complexity but does need the attacker to have some level of authenticated access (low privileges) and user interaction to complete the attack chain.

Root Cause

The root cause lies in improper validation of redirect URIs containing wildcards. When Keycloak evaluates a redirect URI against a wildcard pattern, the matching logic does not properly constrain the path components, allowing an attacker who controls a path on the same server to construct URIs that bypass the intended restrictions.

This is a classic open redirect vulnerability pattern where insufficient validation of user-controlled input (the redirect URI) allows redirection to unintended destinations.

Attack Vector

The attack exploits the network-accessible OAuth/OIDC authentication flow in Keycloak. The attack scenario involves:

  1. An attacker identifies a Keycloak client configured with a wildcard redirect URI pattern
  2. The attacker, controlling another path on the same web server, crafts a malicious redirect URI that matches the wildcard pattern but points to their controlled path
  3. A victim user is tricked into initiating an authentication flow with the crafted redirect URI
  4. Upon successful authentication, Keycloak redirects the user to the attacker-controlled path with the access token
  5. The attacker captures the access token and can impersonate the victim

The vulnerability requires user interaction as the victim must click on a malicious link or be redirected through the crafted authentication flow.

Detection Methods for CVE-2026-3872

Indicators of Compromise

  • Unusual redirect URI patterns in authentication logs that match wildcard configurations but redirect to unexpected paths
  • Access token grants followed by immediate requests from different IP addresses or geographic locations
  • Authentication flows completing successfully but with redirect URIs to paths not typically associated with legitimate application flows
  • Increased OAuth callback requests to uncommon paths on the server

Detection Strategies

  • Monitor Keycloak authentication logs for redirect URIs that match wildcard patterns but redirect to unexpected or suspicious paths
  • Implement alerting on authentication token grants where the redirect destination differs from known legitimate application endpoints
  • Review client configurations for overly permissive wildcard redirect URI patterns
  • Deploy web application firewall (WAF) rules to detect and block suspicious redirect patterns in OAuth flows

Monitoring Recommendations

  • Enable detailed logging for OAuth/OIDC authentication flows in Keycloak
  • Monitor for anomalous access token usage patterns that may indicate token theft
  • Review audit logs for client configuration changes, particularly to redirect URI settings
  • Implement session monitoring to detect token reuse from different network locations

How to Mitigate CVE-2026-3872

Immediate Actions Required

  • Review all Keycloak client configurations and identify those using wildcard redirect URI patterns
  • Replace overly broad wildcard patterns with explicit, fully-qualified redirect URIs where possible
  • Apply the latest security patches from Red Hat advisories immediately
  • Audit existing access tokens and consider invalidating sessions if compromise is suspected

Patch Information

Red Hat has released multiple security advisories addressing this vulnerability:

  • Red Hat Security Advisory RHSA-2026:6475
  • Red Hat Security Advisory RHSA-2026:6476
  • Red Hat Security Advisory RHSA-2026:6477
  • Red Hat Security Advisory RHSA-2026:6478

For additional details, refer to the Red Hat CVE Analysis for CVE-2026-3872 and Red Hat Bug Report #2445988.

Workarounds

  • Replace wildcard redirect URI patterns with explicit, fully-qualified URIs for all OAuth/OIDC clients
  • Implement additional redirect URI validation at the application layer before accepting tokens
  • Use the most restrictive redirect URI patterns possible, avoiding wildcards when feasible
  • Consider implementing PKCE (Proof Key for Code Exchange) for additional protection against token interception
bash
# Example: Review Keycloak client configurations for wildcard redirect URIs
# Connect to Keycloak admin CLI and list clients with wildcard patterns
./kcadm.sh get clients -r your-realm --fields clientId,redirectUris | grep -E '\*'

# Update client to use explicit redirect URI instead of wildcard
./kcadm.sh update clients/CLIENT_ID -r your-realm -s 'redirectUris=["https://app.example.com/callback"]'

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 Score7.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/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:6475

  • Red Hat Security Advisory RHSA-2026:6476

  • Red Hat Security Advisory RHSA-2026:6477

  • Red Hat Security Advisory RHSA-2026:6478

  • Red Hat CVE Analysis CVE-2026-3872

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

  • CVE-2026-4325: Keycloak Auth Bypass Vulnerability

  • CVE-2026-4628: Keycloak Auth Bypass Vulnerability

  • CVE-2026-2603: Keycloak Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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