CVE-2025-66568

Critical

Description

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductOnelogin Ruby-saml
PublishedDec 9, 2025
First seenDec 9, 2025
Weakness typeCWE-347CWE-347

How to fix

Update
  • onelogin ruby-saml1.18.0 or later

Affected products

ProductAffected versionsFixed in
onelogin ruby-samlv < 1.18.01.18.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.