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-2025-25292

CVE-2025-25292: Omniauth SAML Auth Bypass Vulnerability

CVE-2025-25292 is an authentication bypass flaw in ruby-saml caused by parser differential between ReXML and Nokogiri. Attackers can exploit this to execute signature wrapping attacks. This post covers technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2025-25292 Overview

CVE-2025-25292 is a critical authentication bypass vulnerability discovered in the ruby-saml library, which provides Security Assertion Markup Language (SAML) single sign-on (SSO) capabilities for Ruby applications. The vulnerability stems from a parser differential between the ReXML and Nokogiri XML parsing libraries, allowing attackers to execute Signature Wrapping attacks and bypass authentication mechanisms.

The flaw enables an unauthenticated attacker to craft malicious SAML responses that exploit the parsing differences between these two XML libraries. When ReXML and Nokogiri parse the same XML input, they can generate entirely different document structures, which attackers can leverage to manipulate signature validation and gain unauthorized access to protected resources.

Critical Impact

This vulnerability allows complete authentication bypass in SAML SSO implementations, enabling attackers to sign in as any user without valid credentials on affected applications including GitLab instances.

Affected Products

  • onelogin ruby-saml (versions prior to 1.12.4 and 1.18.0)
  • omniauth omniauth_saml (dependent on vulnerable ruby-saml versions)
  • netapp storagegrid

Discovery Timeline

  • 2025-03-12 - CVE-2025-25292 published to NVD
  • 2025-03-12 - GitLab releases patch version 17.9.2
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-25292

Vulnerability Analysis

The vulnerability exists in how ruby-saml handles XML document parsing and signature validation. The library uses two different XML parsing libraries—ReXML (Ruby's built-in XML parser) and Nokogiri (a wrapper around libxml2)—at different stages of SAML response processing. These parsers handle certain XML constructs differently, particularly around comments, whitespace, and entity handling.

When processing a SAML response, ruby-saml performs signature validation using one parser but extracts assertion data using another. An attacker can craft a malicious SAML response that appears valid to the signature verification process but yields different content when the actual assertion data is extracted. This discrepancy allows the attacker to inject arbitrary assertion content that bypasses signature validation entirely.

The authentication bypass can be exploited remotely without any prior authentication, requiring only network access to the vulnerable application's SAML endpoint. Successful exploitation grants attackers unauthorized access with the ability to impersonate any user within the SAML authentication context.

Root Cause

The root cause is a classic parser differential vulnerability (CWE-347: Improper Verification of Cryptographic Signature). The ruby-saml library validates SAML signatures using one XML parser but extracts assertion content using a different parser that interprets the same XML document structure differently. This architectural flaw means the signed content verified during validation may differ from the content actually used for authentication decisions.

The security patch addresses this by introducing a check_malformed_doc parameter that ensures consistent document handling across both parsing stages. The fix validates the XML document structure using Nokogiri's safe loading mechanism before processing, ensuring that malformed or crafted XML that would be parsed differently by ReXML and Nokogiri is rejected early in the validation process.

Attack Vector

The attack requires network access to a SAML Service Provider (SP) endpoint that uses a vulnerable version of ruby-saml. An attacker can execute a Signature Wrapping attack by:

  1. Intercepting or obtaining a valid signed SAML response
  2. Crafting a modified SAML response that exploits parser differential behavior
  3. Inserting malicious assertion content that will be parsed differently by ReXML and Nokogiri
  4. Submitting the crafted response to the vulnerable SP endpoint
  5. The signature validates against the original content while the application extracts the attacker's injected content
ruby
# Security patch in lib/onelogin/ruby-saml/saml_message.rb
# Source: https://github.com/SAML-Toolkits/ruby-saml/commit/e9c1cdbd0f9afa467b585de279db0cbd0fb8ae97

# Validates the SAML Message against the specified schema.
# @param document [REXML::Document] The message that will be validated
# @param soft [Boolean] soft Enable or Disable the soft mode (In order to raise exceptions when the message is invalid or not)
# @param check_malformed_doc [Boolean] check_malformed_doc Enable or Disable the check for malformed XML
# @return [Boolean] True if the XML is valid, otherwise False, if soft=True
# @raise [ValidationError] if soft == false and validation fails
#
-      def valid_saml?(document, soft = true)
+      def valid_saml?(document, soft = true, check_malformed_doc = true)
         begin
-          xml = Nokogiri::XML(document.to_s) do |config|
-            config.options = XMLSecurity::BaseDocument::NOKOGIRI_OPTIONS
-          end
+          xml = XMLSecurity::BaseDocument.safe_load_xml(document, check_malformed_doc)
         rescue StandardError => error
           return false if soft
           raise ValidationError.new("XML load failed: #{error.message}")

Detection Methods for CVE-2025-25292

Indicators of Compromise

  • Unexpected SAML authentication successes for users who did not initiate login requests
  • SAML responses containing unusual XML structures, comments, or entity references
  • Authentication logs showing successful logins from unexpected IP addresses or geographic locations
  • Anomalous user session creation patterns, particularly for privileged accounts

Detection Strategies

  • Monitor SAML endpoint access logs for malformed or unusually large SAML response payloads
  • Implement alerting on authentication events that occur without corresponding user-initiated SSO flows
  • Review web application logs for XML parsing errors or warnings that may indicate exploitation attempts
  • Deploy network-level inspection for SAML traffic containing suspicious XML constructs

Monitoring Recommendations

  • Enable detailed logging on all SAML authentication endpoints and correlation with identity provider logs
  • Monitor for privilege escalation events following SAML authentication, particularly admin account access
  • Implement anomaly detection on user session patterns to identify potential impersonation attacks
  • Track ruby-saml library versions across your environment to ensure patched versions are deployed

How to Mitigate CVE-2025-25292

Immediate Actions Required

  • Update ruby-saml to version 1.12.4 or 1.18.0 immediately across all affected applications
  • Audit recent SAML authentication logs for suspicious activity that may indicate prior exploitation
  • Review and revoke any suspicious user sessions created through SAML authentication
  • Notify security teams about potential authentication bypass and coordinate incident response if exploitation is suspected

Patch Information

The vulnerability has been patched in ruby-saml versions 1.12.4 and 1.18.0. Organizations should upgrade to these versions immediately. For GitLab users, version 17.9.2 includes the patched ruby-saml library. The patches introduce a check_malformed_doc parameter that enables consistent XML document validation using Nokogiri's safe loading mechanism.

Detailed patch information is available in the GitHub Security Advisory GHSA-754f-8gm6-c4r2 and the corresponding omniauth-saml advisory GHSA-hw46-3hmr-x9xv.

Workarounds

  • Temporarily disable SAML SSO authentication if upgrading is not immediately possible
  • Implement additional authentication factors (MFA) that operate independently of SAML assertions
  • Restrict network access to SAML endpoints to trusted identity providers only
  • Enable strict XML schema validation at the web application firewall level
bash
# Update ruby-saml gem to patched version
bundle update ruby-saml

# Verify installed version
bundle show ruby-saml

# For GitLab installations, upgrade to 17.9.2 or later
sudo gitlab-ctl upgrade

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOmniauth

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability3.82%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Security Analysis

  • Ruby SAML Release v1.12.4

  • Ruby SAML Release v1.18.0

  • PortSwigger Research Article

  • GitHub Security Advisory GHSL-2024-329_GHSL-2024-330

  • Debian LTS Announcement

  • Hacker News Discussion

  • NetApp Security Advisory NTAP-20250314-0009
  • Vendor Resources
  • GitLab Patch Release Announcement

  • Ruby SAML Commit Update

  • Ruby SAML Commit Update

  • GitHub Security Advisory GHSA-754f-8gm6-c4r2

  • GitHub Security Advisory GHSA-hw46-3hmr-x9xv
  • Related CVEs
  • CVE-2025-25291: Omniauth SAML Auth Bypass Vulnerability

  • CVE-2024-21632: Omniauth Microsoft Graph Auth Bypass Flaw

  • CVE-2025-25293: Omniauth SAML DoS 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