Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-37980

CVE-2026-37980: Keycloak Stored XSS Vulnerability

CVE-2026-37980 is a stored XSS flaw in Keycloak's organization selection login page that allows attackers with admin privileges to execute malicious JavaScript. This article covers technical details, impact, and mitigation.

Published: April 17, 2026

CVE-2026-37980 Overview

A Stored Cross-Site Scripting (XSS) vulnerability has been identified in Keycloak's organization selection login page. This flaw allows a remote attacker with manage-realm or manage-organizations administrative privileges to inject malicious JavaScript payloads that execute in victims' browsers when they view the affected login page.

The vulnerability exists because the organization.alias value is placed directly into an inline JavaScript onclick handler without proper sanitization. When users interact with the compromised login page, the crafted JavaScript payload executes within their browser context, potentially leading to session theft, unauthorized account actions, or further attacks against users of the affected realm.

Critical Impact

Successful exploitation enables arbitrary JavaScript execution in authenticated user sessions, potentially compromising session tokens and enabling account takeover within the affected Keycloak realm.

Affected Products

  • Keycloak (specific versions not disclosed in advisory)
  • Red Hat Single Sign-On (based on Keycloak)
  • Downstream products utilizing Keycloak authentication

Discovery Timeline

  • April 14, 2026 - CVE-2026-37980 published to NVD
  • April 14, 2026 - Last updated in NVD database

Technical Details for CVE-2026-37980

Vulnerability Analysis

This Stored XSS vulnerability (CWE-79) stems from improper neutralization of user-controlled input in web page generation. The vulnerability resides in Keycloak's organization selection functionality on the login page, where the organization.alias field is embedded directly into an inline JavaScript onclick event handler.

When an administrator with manage-realm or manage-organizations privileges creates or modifies an organization, they can inject a malicious JavaScript payload into the alias field. This payload is stored in the Keycloak database and subsequently rendered to any user who accesses the login page for that realm, executing the attacker's script in the victim's browser context.

The attack requires elevated administrative privileges to inject the payload, but the impact extends to all users who subsequently access the compromised login page. This scope escalation is reflected in the changed scope designation, indicating that the vulnerability affects resources beyond the vulnerable component's security authority.

Root Cause

The root cause is insufficient input validation and output encoding when processing the organization.alias parameter. The application fails to properly sanitize this value before embedding it within an inline JavaScript context. Specifically, the alias value is concatenated directly into an onclick handler attribute without HTML entity encoding or JavaScript string escaping, allowing special characters to break out of the string context and execute arbitrary JavaScript.

Attack Vector

An attacker with administrative privileges (manage-realm or manage-organizations) can exploit this vulnerability through the following mechanism:

  1. The attacker authenticates to Keycloak with an account possessing administrative privileges over realm or organization management
  2. The attacker creates or modifies an organization, injecting a crafted JavaScript payload into the organization.alias field
  3. The malicious payload is stored in the Keycloak database
  4. When any user visits the login page containing the organization selector, the payload is rendered within an inline onclick handler
  5. User interaction with the affected element triggers JavaScript execution in the victim's browser context

The malicious payload could be designed to steal session cookies, capture credentials, perform actions on behalf of the user, or redirect users to phishing pages. For additional technical details, refer to the Red Hat CVE-2026-37980 Advisory and Red Hat Bug #2455325 Report.

Detection Methods for CVE-2026-37980

Indicators of Compromise

  • Unusual JavaScript code patterns in organization.alias fields within the Keycloak database
  • Organization aliases containing HTML special characters, script tags, or event handler syntax such as ', ", <, >, (, ), or javascript:
  • Unexpected network requests originating from users' browsers during login page interactions
  • Reports of suspicious browser behavior or redirects when accessing Keycloak login pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor Keycloak audit logs for organization creation and modification events by administrative accounts
  • Deploy web application firewalls (WAF) with XSS detection rules to identify malicious payloads in HTTP responses
  • Conduct periodic database audits to identify potentially malicious content in organization configuration fields

Monitoring Recommendations

  • Enable verbose logging for administrative actions within Keycloak realms and organizations
  • Configure alerting for unusual patterns in organization alias modifications
  • Implement browser-side monitoring through SentinelOne's browser extension capabilities to detect XSS execution attempts
  • Review authentication logs for anomalous session behavior that may indicate successful exploitation

How to Mitigate CVE-2026-37980

Immediate Actions Required

  • Audit all existing organization aliases in affected Keycloak instances for potentially malicious content
  • Review administrative access to identify accounts with manage-realm or manage-organizations privileges and verify their legitimacy
  • Implement Content Security Policy headers with strict inline script restrictions as a defense-in-depth measure
  • Consider temporarily restricting organization management capabilities until patches are applied

Patch Information

Consult the Red Hat CVE-2026-37980 Advisory for official patch information and updated Keycloak versions that address this vulnerability. Monitor the Red Hat Bug #2455325 Report for ongoing remediation status and specific version details.

Organizations should prioritize applying vendor-provided security updates that implement proper input validation and output encoding for the organization.alias field.

Workarounds

  • Implement strict Content Security Policy headers that prevent inline script execution: script-src 'self' without 'unsafe-inline'
  • Restrict administrative access by enforcing the principle of least privilege for manage-realm and manage-organizations roles
  • Deploy a web application firewall (WAF) with XSS filtering rules in front of Keycloak instances
  • Sanitize existing organization aliases by reviewing and removing any suspicious characters or JavaScript-like syntax from the database
bash
# Example CSP header configuration for Apache/Nginx to mitigate XSS
# Apache httpd.conf or .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self';"

# Nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self';" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechKeycloak

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Red Hat CVE-2026-37980 Advisory

  • Red Hat Bug #2455325 Report
  • Related CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2026-37977: Keycloak CORS Information Disclosure Flaw

  • CVE-2026-4636: Keycloak Auth Bypass Vulnerability

  • CVE-2026-4634: Keycloak Denial of Service Vulnerability
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