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

Published Aug 25, 2026
·
Updated

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 Software

1 affected component
rubygems/nokogiri<1.19.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Nokogiri to a version that resolves this vulnerability.

    Fixed in 1.19.1

Event History

Aug 25, 2026
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using Nokogiri versions before 1.19.1 are affected when downstream SAML libraries rely on Nokogiri's canonicalize method for XML signature validation.

2

What must an attacker do to exploit the flaw?

The attacker must provide invalid canonicalized XML to a vulnerable signature-validation path. The failed canonicalization can produce an empty string that downstream SAML code may incorrectly accept as valid.

3

How can I determine whether remediation is needed?

Check the installed Nokogiri version and identify whether it is used by SAML functionality that validates XML signatures. Versions earlier than 1.19.1 require remediation.

4

What is the available fix?

Upgrade Nokogiri to version 1.19.1 or later, where failure from xmlC14NExecute is handled rather than returned as an empty string.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203