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

CVE-2025-66578: Xmlseclibs Authentication Bypass Vulnerability

CVE-2025-66578 is an authentication bypass vulnerability in Xmlseclibs caused by a flaw in libxml2 canonicalization. Attackers can exploit this to bypass XML signature validation. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 29, 2026

CVE-2025-66578 Overview

CVE-2025-66578 is an authentication bypass vulnerability affecting xmlseclibs, a PHP library used for working with XML Encryption and Signatures. The vulnerability stems from a critical flaw in the libxml2 canonicalization process during document transformation. When libxml2's canonicalization is invoked on invalid XML input, it may return an empty string rather than a properly canonicalized node. The xmlseclibs library then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded, effectively bypassing signature validation.

Critical Impact

Attackers can bypass XML signature authentication by crafting malformed XML documents that trigger empty canonicalization outputs, allowing forged or tampered documents to pass validation checks.

Affected Products

  • xmlseclibs version 3.1.3 and earlier
  • Applications using xmlseclibs for XML signature verification
  • SAML implementations relying on xmlseclibs for authentication

Discovery Timeline

  • December 8, 2025 - Security patch released in version 3.1.4
  • December 9, 2025 - CVE CVE-2025-66578 published to NVD
  • December 11, 2025 - Last updated in NVD database

Technical Details for CVE-2025-66578

Vulnerability Analysis

This authentication bypass vulnerability (CWE-248: Uncaught Exception) occurs in the XML signature verification workflow of xmlseclibs. The core issue lies in how the library handles the return value from PHP's C14N() canonicalization function. When processing malformed XML input, the underlying libxml2 library may fail to canonicalize the document properly, returning false instead of the expected canonicalized string.

The vulnerable code path in XMLSecurityDSig.php did not properly validate the canonicalization result before using it for digest computation. This allows an attacker to craft XML documents that trigger this failure condition, causing the library to compute digests over empty or unexpected values rather than the actual document content.

Root Cause

The root cause is insufficient error handling in the canonicalization process. Prior to the fix, the C14N() method return value was used directly without validating whether canonicalization actually succeeded. When C14N() returns false (indicating failure), the code would proceed with signature verification using an incorrect digest value, potentially allowing signature bypass.

Attack Vector

This vulnerability is exploitable over the network without authentication. An attacker can exploit this flaw by:

  1. Crafting a malformed XML document designed to trigger canonicalization failure in libxml2
  2. Submitting this document to an application that uses xmlseclibs for signature verification
  3. The canonicalization returns an empty or false value
  4. The digest is computed over the incorrect value, allowing the forged document to pass validation

The following patch demonstrates how the vulnerability was addressed:

php
            }
        }

-        return $node->C14N($exclusive, $withComments, $arXPath, $prefixList);
+        $ret = $node->C14N($exclusive, $withComments, $arXPath, $prefixList);
+        if ($ret === false) {
+            throw new Exception("Canonicalization failed");
+        }
+        return $ret; 
    }

    /**

Source: GitHub XMLSecLibs Commit Change

Detection Methods for CVE-2025-66578

Indicators of Compromise

  • Anomalous XML signature validation logs showing successful verification of malformed documents
  • Application logs containing XML parsing errors followed by successful authentication
  • Unexpected empty or minimal DigestValue fields in processed XML signatures
  • Authentication events with inconsistent or malformed SAML assertions

Detection Strategies

  • Monitor for XML parsing errors in applications using xmlseclibs, especially those followed by successful authentication
  • Implement logging at the canonicalization layer to detect empty or false return values
  • Review authentication logs for patterns indicating signature bypass attempts
  • Deploy application-layer security monitoring to identify malformed XML documents

Monitoring Recommendations

  • Enable verbose logging in XML signature processing components
  • Set up alerts for canonicalization failures that don't result in rejected documents
  • Monitor for unusual patterns in SAML or XML-based authentication flows
  • Regularly audit xmlseclibs library versions across all deployment environments

How to Mitigate CVE-2025-66578

Immediate Actions Required

  • Upgrade xmlseclibs to version 3.1.4 or later immediately
  • Review all applications using xmlseclibs and prioritize those handling authentication
  • Audit recent authentication logs for potential exploitation attempts
  • Implement additional input validation for XML documents before signature verification

Patch Information

The vulnerability has been fixed in xmlseclibs version 3.1.4, released on December 8, 2025. The patch adds explicit validation of the C14N() return value, throwing an exception when canonicalization fails rather than proceeding with an invalid result.

text
 xmlseclibs.php
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+08, Dec 2025, 3.1.4
+Security:
+- fix canonicalization bypass error (d0ge)
+
 20, Nov 2024, 3.1.3
 Bug Fixes:
 - remove loadKey check due to BC issues

Source: GitHub XMLSecLibs Commit Change

For more details, see the GitHub Security Advisory GHSA-c4cc-x928-vjw9.

Workarounds

  • Implement custom validation to treat canonicalization failures (exceptions or nil/empty outputs) as fatal errors and abort validation
  • Add explicit checks to reject documents when the canonicalize function returns nil, empty string, or raises errors
  • Consider implementing additional signature validation layers independent of xmlseclibs
  • Apply network-level controls to restrict access to services using vulnerable xmlseclibs versions until patching is complete
bash
# Update xmlseclibs via Composer
composer require robrichards/xmlseclibs:^3.1.4

# Verify the installed version
composer show robrichards/xmlseclibs | grep versions

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechXmlseclibs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-248
  • Technical References
  • GitHub XMLSecLibs Code Snippet
  • Vendor Resources
  • GitHub XMLSecLibs Commit Change

  • GitHub Security Advisory GHSA-c4cc-x928-vjw9
  • Related CVEs
  • CVE-2026-32313: Xmlseclibs XXE Vulnerability
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