What’s Vulnerable › Vulnerabilities

CVE-2026-79772: Nokogiri before 1.19.1 Unchecked Return Value canonicalize

Description

Nokogiri versions before 1.19.1 fail to check the return value from xmlC14NExecute in the canonicalize method, returning an empty string on failure instead of raising an exception. Attackers can exploit this to bypass signature validation in downstream SAML libraries by providing invalid canonicalized XML that is incorrectly accepted as valid.

Affected products

How to fix

Upgrade to a fixed version: sparklemotion nokogiri 1.19.1; Rubygems Nokogiri 1.19.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-79772 or the next vulnerability affects your stack