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-37977

CVE-2026-37977: Keycloak CORS Information Disclosure Flaw

CVE-2026-37977 is a CORS header injection flaw in Keycloak that allows attackers to exploit misconfigured clients and expose low-sensitivity data. This article covers the technical details, impact, and mitigation.

Published: April 10, 2026

CVE-2026-37977 Overview

A Cross-Origin Resource Sharing (CORS) header injection vulnerability has been identified in Keycloak's User-Managed Access (UMA) token endpoint. This flaw allows a remote attacker to exploit improper origin validation by crafting a malicious JSON Web Token (JWT) with an attacker-controlled azp (authorized party) claim. The vulnerability arises because the Access-Control-Allow-Origin header is set based on the azp claim before the JWT signature is properly validated. This can result in information exposure from authorization server error responses and weaken origin isolation protections.

Critical Impact

Remote attackers can bypass CORS protections to expose low-sensitivity information from authorization server error responses when target clients are misconfigured with webOrigins: ["*"].

Affected Products

  • Keycloak (versions unspecified)
  • Red Hat Single Sign-On (SSO) implementations using Keycloak
  • Applications utilizing Keycloak's UMA token endpoint with permissive webOrigins configuration

Discovery Timeline

  • 2026-04-06 - CVE-2026-37977 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-37977

Vulnerability Analysis

This vulnerability is classified under CWE-346 (Origin Validation Error), which occurs when a product does not properly verify that the source of data or communication is valid. In Keycloak's UMA token endpoint implementation, the azp claim extracted from a client-supplied JWT is used to populate the Access-Control-Allow-Origin response header prematurely—before the JWT's cryptographic signature is validated.

The attack requires specific preconditions: the target Keycloak client must be misconfigured with a wildcard web origins setting (webOrigins: ["*"]). When these conditions are met, an attacker can craft a JWT containing an arbitrary azp value. Even though the grant request will ultimately be rejected due to signature validation failure, the malicious origin value is still reflected in the CORS header of the error response.

This behavior enables an attacker to receive cross-origin error responses that would normally be blocked by browser same-origin policies. While the information disclosed is limited to authorization server error messages, this weakens the security boundary between origins and could be leveraged in more sophisticated attack chains.

Root Cause

The root cause is an improper order of operations in the UMA token endpoint request processing. The azp claim from the incoming JWT is extracted and used to set CORS headers before the JWT signature validation step completes. This violates the security principle that untrusted input should be validated before being used in security-relevant operations.

The vulnerable code path processes the azp claim to determine allowed origins for CORS preflight and actual responses, trusting this value without first verifying the JWT's integrity. This creates a window where attacker-controlled data influences HTTP response headers regardless of whether the request is ultimately authorized.

Attack Vector

The attack is network-based and can be executed remotely without authentication. An attacker crafts a malicious JWT with a specially chosen azp claim value set to their controlled origin. When this JWT is submitted to the vulnerable UMA token endpoint, the following sequence occurs:

  1. The attacker's malicious origin from the azp claim is reflected in the Access-Control-Allow-Origin header
  2. The JWT signature validation subsequently fails
  3. An error response is returned with the attacker-controlled CORS header
  4. The attacker's browser receives the error response content due to the permissive CORS header

This allows the attacker to observe error details that would normally be blocked by same-origin policy. The attack complexity is high because it requires the specific misconfiguration of webOrigins: ["*"] on the target client.

Detection Methods for CVE-2026-37977

Indicators of Compromise

  • Unusual JWT submissions to UMA token endpoints with non-standard or suspicious azp claim values
  • High volume of failed authentication attempts from single sources targeting /auth/realms/*/protocol/openid-connect/token endpoints
  • CORS-related error responses being returned to origins not configured in Keycloak client settings
  • Log entries showing JWT signature validation failures with atypical origin patterns

Detection Strategies

  • Monitor Keycloak audit logs for repeated token endpoint failures with varying azp claims from the same source
  • Implement anomaly detection for UMA token requests containing azp values that don't match registered client identifiers
  • Review web server access logs for unusual patterns of requests to token endpoints with subsequent cross-origin requests
  • Configure SIEM rules to alert on high-frequency authorization failures combined with external origin access

Monitoring Recommendations

  • Enable detailed logging for Keycloak's UMA token endpoint to capture azp claim values in failed requests
  • Deploy Web Application Firewall (WAF) rules to inspect JWT payloads for suspicious origin patterns in claims
  • Implement rate limiting on token endpoints to reduce the impact of automated exploitation attempts
  • Audit Keycloak client configurations to identify any instances of webOrigins: ["*"] that should be restricted

How to Mitigate CVE-2026-37977

Immediate Actions Required

  • Audit all Keycloak client configurations and replace any webOrigins: ["*"] settings with explicit, trusted origin lists
  • Review and restrict CORS policies to only allow known and trusted origins for each client application
  • Monitor token endpoint logs for signs of exploitation attempts while awaiting official patches
  • Consider implementing additional origin validation at the reverse proxy or load balancer level

Patch Information

Red Hat has acknowledged this vulnerability and is tracking it through their security response process. For official patch information and updates, refer to the Red Hat CVE-2026-37977 Advisory and Red Hat Bug Report #2455324. Organizations should monitor these resources for patch availability and apply updates as soon as they are released.

Workarounds

  • Configure explicit allowed origins in Keycloak client settings instead of using wildcard (*) values
  • Implement additional CORS validation at the reverse proxy layer to provide defense-in-depth
  • Restrict network access to Keycloak token endpoints to trusted IP ranges where feasible
  • Consider deploying a Web Application Firewall (WAF) with rules to validate JWT structure before forwarding requests
bash
# Configuration example - Restrict webOrigins in Keycloak client configuration
# In Keycloak Admin Console or via API, update client settings:
# Replace:
#   "webOrigins": ["*"]
# With explicit origins:
#   "webOrigins": ["https://trusted-app.example.com", "https://api.example.com"]

# Using kcadm.sh to update client configuration:
kcadm.sh update clients/<client-id> \
  -r <realm-name> \
  -s 'webOrigins=["https://trusted-origin.example.com"]'

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechKeycloak

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-346
  • Technical References
  • Red Hat CVE-2026-37977 Advisory

  • Red Hat Bug Report #2455324
  • Related CVEs
  • CVE-2026-3190: Keycloak Information Disclosure Flaw

  • CVE-2026-4633: Keycloak User Enumeration Vulnerability

  • CVE-2026-4366: Keycloak Information Disclosure Flaw

  • CVE-2026-3911: Keycloak Information Disclosure Flaw
Default Legacy - Prefooter | 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