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-2024-32962

CVE-2024-32962: xml-crypto Auth Bypass Vulnerability

CVE-2024-32962 is an authentication bypass flaw in xml-crypto that allows attackers to spoof signature verification by injecting malicious certificates. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2024-32962 Overview

CVE-2024-32962 is a critical signature verification bypass vulnerability in xml-crypto, a popular XML digital signature and encryption library for Node.js. The vulnerability exists because the default configuration does not verify the authorization of the signer—it only validates the mathematical correctness of the signature per section 3.2.2 of the W3C xmldsig-core specification. This fundamental design flaw allows malicious actors to re-sign XML documents with attacker-controlled certificates and pass default validation checks.

Critical Impact

An attacker can completely bypass XML signature verification by replacing legitimate signatures with attacker-generated signatures and embedding a malicious certificate in the <KeyInfo /> element. This undermines the entire trust model of XML digital signatures, potentially enabling authentication bypass, SAML assertion forgery, and complete identity spoofing in applications relying on xml-crypto for security-critical operations.

Affected Products

  • xml-crypto versions 4.0.0 through 5.x (prior to version 6.0.0)
  • Node.js applications using vulnerable xml-crypto versions for XML signature verification
  • SAML implementations and identity providers relying on xml-crypto

Discovery Timeline

  • 2024-05-02 - CVE CVE-2024-32962 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-32962

Vulnerability Analysis

This vulnerability represents a Certificate Validation Bypass (CWE-347: Improper Verification of Cryptographic Signature) that fundamentally compromises the trust model of XML digital signatures. The root issue stems from how xml-crypto handles certificate extraction and validation during signature verification.

When processing a digitally signed XML document, xml-crypto's default behavior extracts and trusts any certificate embedded within the <KeyInfo /> element of the signature. The library verifies that the signature is mathematically valid using this certificate but fails to validate whether the certificate itself is trusted or authorized for the signing operation. This creates a critical gap where an attacker can forge documents by creating their own key pair, signing an arbitrary or modified XML document, and embedding their certificate directly in the document's <KeyInfo /> element.

The vulnerability was introduced in version 4.0.0 through changes in pull request #301 (commit c2b83f98). Additionally, even when applications explicitly configure a trusted certificate via the publicCert option, xml-crypto preferentially uses the certificate from the XML document's <KeyInfo /> element, completely bypassing the intended certificate pinning mechanism.

Root Cause

The root cause is improper verification of cryptographic signatures as defined by CWE-347. The xml-crypto library implements only the signature validation portion of the W3C XML Signature specification without implementing the critical signer authorization verification step. The getCertFromKeyInfo function extracts certificates from XML documents and returns them for use in signature verification without any authorization checks. This design trusts certificates solely because they are present in a digitally signed document, rather than validating them against a known trusted certificate authority or pinned certificate list.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker exploits this vulnerability through the following process:

  1. The attacker generates a new RSA or EC key pair under their control
  2. The attacker obtains or creates an XML document they wish to forge (such as a SAML assertion)
  3. The attacker signs the XML document using their private key
  4. The attacker embeds their public certificate in the <KeyInfo /> element of the signature
  5. The forged document is submitted to an application using vulnerable xml-crypto
  6. xml-crypto extracts the attacker's certificate from <KeyInfo /> and validates the signature
  7. Since the signature is mathematically valid against the embedded certificate, validation succeeds

The attack is particularly dangerous for SAML-based single sign-on (SSO) implementations, where attackers can forge authentication assertions to impersonate any user. Applications using xml-crypto to verify signed API requests, configuration files, or any trusted XML data are similarly vulnerable.

Detection Methods for CVE-2024-32962

Indicators of Compromise

  • Unusual or unexpected certificates appearing in XML document <KeyInfo /> elements that don't match known trusted certificates
  • Authentication events with valid SAML assertions but certificates issued by unknown or suspicious certificate authorities
  • XML signatures where the signing certificate was recently created or has unusual metadata
  • Log entries showing successful signature verification but with certificate fingerprints not in the trusted certificate store

Detection Strategies

  • Implement application-level logging that captures certificate details (issuer, subject, fingerprint) during XML signature verification operations
  • Compare certificates used in signature verification against a whitelist of known trusted certificates in application logs
  • Monitor for SAML assertions or signed XML documents where the certificate issuer does not match expected identity providers
  • Deploy network monitoring to detect XML documents with self-signed or internally-generated certificates being submitted to applications

Monitoring Recommendations

  • Enable detailed audit logging for all authentication events in applications using xml-crypto
  • Implement certificate fingerprint tracking and alerting when unknown certificates are used for signature verification
  • Monitor Node.js application dependencies and alert on xml-crypto versions prior to 6.0.0
  • Establish baseline certificate usage patterns and alert on deviations or new certificate authorities

How to Mitigate CVE-2024-32962

Immediate Actions Required

  • Upgrade xml-crypto to version 6.0.0 or later immediately, as this version addresses the vulnerability through pull request #445 (commit 21201723d)
  • Review all applications using xml-crypto and prioritize those handling authentication (SAML), authorization, or sensitive data signing
  • Implement certificate validation as a defense-in-depth measure by checking extracted certificates against trusted sources before accepting validation results
  • Audit recent authentication logs for any suspicious certificate usage that may indicate prior exploitation

Patch Information

The vulnerability has been addressed in xml-crypto version 6.0.0. The fix was implemented in commit 21201723d as part of pull request #445. Users should upgrade to this version or later. Additional vendor security information is available in the GitHub Security Advisory GHSA-2xp3-57p7-qf4v and the NetApp Security Advisory NTAP-20240705-0003.

Workarounds

  • Validate certificates extracted via getCertFromKeyInfo against a list of trusted certificates before accepting signature verification results
  • Configure getCertFromKeyInfo to return undefined by setting it to () => undefined, forcing xml-crypto to use an explicitly configured publicCert or privateKey for signature verification
  • Implement application-level certificate pinning to reject any certificate not matching pre-configured trusted certificates
  • Deploy Web Application Firewall (WAF) rules to inspect and reject XML documents with unexpected certificate values in <KeyInfo /> elements
javascript
// Workaround: Disable certificate extraction from XML documents
const { SignedXml } = require('xml-crypto');

const sig = new SignedXml();

// Force xml-crypto to use explicitly configured certificate
sig.getCertFromKeyInfo = () => undefined;

// Configure your trusted public certificate
sig.publicCert = trustedCertificatePEM;

// Now signature verification will only use the trusted certificate

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechXml Crypto

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability12.73%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Pull Request #301

  • GitHub Pull Request #445

  • GitHub Security Advisory GHSA-2xp3-57p7-qf4v

  • NetApp Security Advisory NTAP-20240705-0003

  • W3C XML Signature Core Specification
  • Related CVEs
  • CVE-2025-29775: xml-crypto Auth Bypass Vulnerability

  • CVE-2025-29774: xml-crypto Auth Bypass 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