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.
Published: 2026-08-25
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Authentication bypass via SAML signature validation
Action: Immediate upgrade
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Tue, 01 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*

Fri, 28 Aug 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 25 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion nokogiri
Vendors & Products Sparklemotion
Sparklemotion nokogiri

Tue, 25 Aug 2026 15:30:00 +0000

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'}


Subscriptions

Nokogiri Nokogiri
Sparklemotion Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-28T22:24:47.141Z

Reserved: 2026-08-25T14:29:43.528Z

Link: CVE-2026-79772

cve-icon Vulnrichment

Updated: 2026-08-28T22:24:43.048Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-25T16:17:28.743

Modified: 2026-09-01T14:54:24.567

Link: CVE-2026-79772

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-25T15:16:04Z

Links: CVE-2026-79772 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T17:45:04Z

Weaknesses