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

Medium 6.9 Published Updated

Attackers can bypass SAML signature validation by exploiting unchecked return values in Nokogiri's canonicalization method, accepting invalid XML as valid.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-79772?

CVE-2026-79772 is a medium-severity vulnerability in sparklemotion nokogiri, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-252

Which versions are affected by CVE-2026-79772?

2 open source packages ship an affected version, including nokogiri. It affects 1 product.

PackageAffectedFixed in
nokogiri RubyGemsFrom 1.5.11.19.1
nokogiri RubyGemsFrom 1.5.11.19.1

Products include Nokogiri Nokogiri.

How do I fix CVE-2026-79772?

Upgrade nokogiri to 1.19.1 or later.

Is CVE-2026-79772 being exploited?

There is no known exploitation of CVE-2026-79772 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-79772, CLEANSTART-2026-YY44822, DEBIAN-CVE-2026-79772, GHSA-wx95-c6cv-8532, MINI-4549-7qmf-g294, MINI-5chf-488p-2rvj and 7 more.

Is CVE-2026-79772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free