ADVISORIES

Vulnerability

CVE-2025-66568

The ruby-saml library implements the client side of an SAML authorization. Versions up to and including 1.12.4, are vulnerable to authentication bypass through the libxml2 canonicalization process used by Nokogiri for document transformation, which allows an attacker to execute a Signature Wrapping attack. When libxml2’s canonicalization is invoked on an invalid XML input, it may return an empty string rather than a canonicalized node. ruby-saml then proceeds to compute the DigestValue over this empty string, treating it as if canonicalization succeeded. This issue is fixed in version 1.18.0.

2 advisories report this vulnerability, across 2 ecosystems.

Critical severity All RubyGems 1Ubuntu 1

Advisories

  • GHSA-x4h9-gwv3-r4m4

    Ruby-saml allows a Libxml2 Canonicalization error to bypass Digest/Signature validation

    Critical CVE-2025-66568 RubyGems Updated 12 December 2025
  • UBUNTU-CVE-2025-66568

    The ruby-saml library implements the client side of an SAML authorization. Versions up to and including 1.12.4, are vulnerable to authentication bypass through the libxml2 canonicalization process used by Nokogiri for…

    CVE-2025-66568 Ubuntu Updated 20 January 2026

References