CVE-2026-79772

Nokogiri before 1.19.1 Unchecked Return Value canonicalize

Published Aug 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises because Nokogiri versions older than 1.19.1 do not verify the return value of xmlC14NExecute in their canonicalize method; if canonicalization fails, an empty string is returned instead of an exception. Attackers can exploit this flaw by supplying malformed XML to downstream SAML libraries that rely on Nokogiri for canonicalization, causing those libraries to accept an empty or otherwise invalid canonicalized XML as a valid signature. The likely attack vector is through network traffic that delivers XML payloads to an application that processes them with Nokogiri, such as REST endpoints or SOAP services; this inference follows from the stated impact of bypassing SAML signature verification.

Affected Systems

Any application that incorporates the Nokogiri library to process XML—especially Ruby or Rails applications using SAML authentication—running a Nokogiri version prior to 1.19.1 is affected. This includes common frameworks, identity provider implementations, and service provider integrations that depend on Nokogiri for XML canonicalization.

Risk and Exploitability

The CVSS score of 6.9 classifies this vulnerability as moderate severity, reflecting its potential to undermine authentication mechanisms. The EPSS score is not available, indicating there is currently no published statistical data on exploitation likelihood; however, the description indicates that a remote attacker could trigger the flaw by delivering crafted XML to a vulnerable application. The vulnerability is not listed in the CISA KEV catalog, and no publicly disclosed exploitation code is known. Nonetheless, the ability to bypass signature verification directly threatens the integrity of SAML workflows, making the risk significant for any system that relies on signature validation for authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nokogiri to version 1.19.1 or later using your package manager or Gemfile lock.
  • Add a strict version constraint in your Gemfile (or equivalent) to prevent accidental downgrades of Nokogiri.
  • If an immediate upgrade is not possible, enforce application‑level checks that reject empty canonicalized XML or reject signatures that fail verification, restoring validation integrity until the library is patched.
  • Audit the SAML signature-handling code to ensure canonicalized XML is non‑empty and valid before signature verification occurs.

Generated by OpenCVE AI on August 25, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wx95-c6cv-8532 Nokogiri does not check the return value from xmlC14NExecute
History
Type Values Removed Values Added
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion nokogiri
Vendors & Products Sparklemotion
Sparklemotion nokogiri
Type Values Removed Values Added
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.
Title Nokogiri before 1.19.1 Unchecked Return Value canonicalize
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-252
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 28, 2026, 10:24 PM
Reserved
Aug 25, 2026, 2:29 PM
Status
Analyzed
Published
Aug 25, 2026, 4:17 PM
Modified
Sep 1, 2026, 2:54 PM
Severity
Moderate
Public date
Aug 25, 2026, 3:16 PM