Read the docs
TI-2024-21829 Aliases CVE-2024-32962GHSA-2xp3-57p7-qf4v

XML signature verification bypass due improper verification of signature / signature spoofing

Priority HIGH 82CWE-347Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-347.

Summary

xml-crypto is an xml digital signature and encryption library for Node.js. In affected versions the default configuration does not check authorization of the signer, it only checks the validity of the signature per section 3.2.2 of the w3 xmldsig-core-20080610 spec. As such, without additional validation steps, the default configuration allows a malicious actor to re-sign an XML document, place the certificate in a `<KeyInfo />` element, and pass `xml-crypto` default validation checks. As a result `xml-crypto` trusts by default any certificate provided via digitally signed XML document's `<KeyInfo />`. `xml-crypto` prefers to use any certificate provided via digitally signed XML document's `<KeyInfo />` even if library was configured to use specific certificate (`publicCert`) for signature verification purposes. An attacker can spoof signature verification by modifying XML document and replacing existing signature with signature generated with malicious private key (created by attacker) and by attaching that private key's certificate to `<KeyInfo />` element. This vulnerability is combination of changes introduced to `4.0.0` on pull request 301 / commit `c2b83f98` and has been addressed in version 6.0.0 with pull request 445 / commit `21201723d`. Users are advised to upgrade. Users unable to upgrade may either check the certificate extracted via `getCertFromKeyInfo` against trusted certificates before accepting the results of the validation or set `xml-crypto's getCertFromKeyInfo` to `() => undefined` forcing `xml-crypto` to use an explicitly configured `publicCert` or `privateKey` for signature verification.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00833 57th percentileScored 2026-11-07
Fix Fixed xml-crypto (node-saml): 6.0.0xml-crypto (npm): 6.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
node-samlxml-crypto4.0.0 to before 6.0.06.0.0Patch availableCNA
—xml-crypto (npm)4.0.0 to before 6.0.06.0.0Patch availableGHSA-2xp3-57p7-qf4v
  • xml-crypto Vendornode-saml Affected 4.0.0 to before 6.0.0 Fixed in 6.0.0 Patch available CNA
  • xml-crypto (npm) Vendor— Affected 4.0.0 to before 6.0.0 Fixed in 6.0.0 Patch available GHSA-2xp3-57p7-qf4v

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:node_saml_project:xml_crypto:4.0.0:*:*:*:*:*:*:*4.0.0—Node Saml Project
  • cpe:2.3:a:node_saml_project:xml_crypto:4.0.0:*:*:*:*:*:*:* Versions 4.0.0 — ·Node Saml Project

Remediation

  • Fix · CNA xml-crypto (node-saml) Fixed in 6.0.0
  • Fix · GHSA-2xp3-57p7-qf4v xml-crypto (npm) Fixed in 6.0.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Critical. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Developer Hub 1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-32962
  2. 2026-10-03 Alias added: GHSA-2xp3-57p7-qf4v
  3. 2026-10-27 Affected versions changed · Red Hat

References

  • TI-2025-21187 xml-crypto Vulnerable to XML Signature Verification Bypass via DigestValue Comment CVSS 4.0CRITICAL 9.3
  • TI-2025-21186 xml-crypto Vulnerable to XML Signature Verification Bypass via Multiple SignedInfo References CVSS 4.0CRITICAL 9.3
  • TI-2025-34225 Node-SAML Contains SAML Signature Verification Vulnerability CVSS 3.1CRITICAL 10.0
  • TI-2025-34181 Node-SAML SAML Authentication Bypass CVSS 4.0CRITICAL 9.3

Sources