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

CVE-2026-9791: Keycloak Information Disclosure Vulnerability

CVE-2026-9791 is an information disclosure flaw in Keycloak that exposes organization metadata in tokens even when the feature is disabled, risking incorrect authorization. This article covers technical details, impact, and mitigations.

Published: May 28, 2026

CVE-2026-9791 Overview

CVE-2026-9791 is an authorization flaw in Keycloak, the open-source identity and access management solution maintained by Red Hat. An authenticated user with existing organization membership can retrieve organization metadata through user-facing APIs, including the account API and OpenID Connect (OIDC) token requests using the organization scope. The flaw persists even after administrators explicitly disable the Organizations feature. Downstream resource servers consuming these tokens may make incorrect authorization decisions based on the leaked metadata. The weakness is classified as Incorrect Authorization [CWE-863].

Critical Impact

Disabled feature flags do not suppress organization metadata in issued tokens, undermining trust in feature-toggle-based access control.

Affected Products

  • Red Hat Keycloak
  • Red Hat Build of Keycloak
  • Red Hat Single Sign-On (downstream distributions referencing the upstream Keycloak codebase)

Discovery Timeline

  • 2026-05-28 - CVE-2026-9791 published to the National Vulnerability Database
  • 2026-05-28 - Last updated in NVD database

Technical Details for CVE-2026-9791

Vulnerability Analysis

The vulnerability resides in how Keycloak handles the Organizations feature toggle. Administrators can disable the Organizations feature through server configuration, expecting that organization-related claims and APIs become inert. The flaw breaks that assumption. Authenticated users retain the ability to query the account API and request OIDC tokens scoped with organization, and Keycloak continues to embed organization membership metadata in the responses.

This behavior creates a divergence between the administrator's stated security posture and the data actually leaving the identity provider. Resource servers that gate functionality on the presence or content of organization claims will receive populated values when they should receive none. The impact is limited to confidentiality of organization metadata; integrity and availability are not affected.

Root Cause

The root cause is incorrect authorization enforcement around the Organizations feature flag. Token issuance and account API handlers do not consult the feature-disabled state before populating organization claims, so metadata flows to clients regardless of administrative intent.

Attack Vector

Exploitation requires an authenticated session and existing organization membership. The attacker calls the account API or requests an OIDC token using the organization scope. No special privileges, user interaction, or local access are required. The disclosed metadata can be replayed against resource servers that rely on these claims for authorization, leading to access decisions the administrator intended to remove by disabling the feature.

Verified exploit code is not publicly available. Refer to the Red Hat CVE-2026-9791 Advisory and the Red Hat Bug Report #2482458 for upstream technical details.

Detection Methods for CVE-2026-9791

Indicators of Compromise

  • OIDC token requests from authenticated users containing the organization scope on realms where the Organizations feature is configured as disabled.
  • Account API responses returning populated organization membership fields after an administrative disable action.
  • Resource server logs showing authorization decisions based on organization claims that should not be present.

Detection Strategies

  • Audit Keycloak EVENT logs for TOKEN_EXCHANGE and CODE_TO_TOKEN events that include the organization scope and correlate with realms where the feature is administratively disabled.
  • Inspect issued JWTs for organization claims using a token introspection workflow and flag tokens emitted by realms with the feature toggle off.
  • Compare realm configuration state against token contents on a recurring basis to catch divergence between policy and runtime behavior.

Monitoring Recommendations

  • Forward Keycloak admin and user events to a centralized log platform and alert on organization scope grants in realms expected to be free of organization data.
  • Monitor account API endpoints (/realms/{realm}/account) for response bodies containing organization fields and baseline normal versus anomalous response shapes.
  • Track configuration drift of the Organizations feature flag through infrastructure-as-code change detection.

How to Mitigate CVE-2026-9791

Immediate Actions Required

  • Apply the Keycloak update referenced in the Red Hat CVE-2026-9791 Advisory once available for your distribution.
  • Inventory clients that request the organization scope and confirm whether each client legitimately requires organization claims.
  • Rotate or invalidate active sessions for users with organization membership after patching to flush cached tokens that still carry leaked metadata.

Patch Information

Red Hat tracks remediation under the advisory linked above. Consult the vendor advisory for fixed package versions specific to Red Hat Build of Keycloak and Red Hat Single Sign-On. Upstream Keycloak users should track the corresponding release notes for the version that aligns the feature toggle with token issuance and account API behavior.

Workarounds

  • Remove the organization scope from client scope mappings on affected realms so tokens cannot be issued with that scope.
  • Strip or ignore organization claims at the resource server boundary until the patched version is deployed.
  • Restrict account API access through a reverse proxy or API gateway policy that filters organization-related response fields.
bash
# Configuration example: remove organization scope from a client via kcadm
kcadm.sh remove-roles \
  --uusername service-account-myclient \
  --cclientid realm-management \
  --rolename view-organizations

# Disable the organization scope assignment on the client
kcadm.sh update clients/<client-uuid>/default-client-scopes/<organization-scope-uuid> \
  -r <realm> --no-merge

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

  • SeverityMEDIUM

  • CVSS Score4.3

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

  • Red Hat Bug Report #2482458
  • Related CVEs
  • CVE-2026-9794: Keycloak Information Disclosure Vulnerability

  • CVE-2026-37981: Keycloak Information Disclosure Flaw

  • CVE-2026-37978: Keycloak Information Disclosure Flaw

  • CVE-2026-37977: Keycloak CORS Information Disclosure Flaw
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