---
id: CVE-2026-79772
title: >-
  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
summary: >-
  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 validatio…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-252
published: '2026-08-25'
updated: '2026-08-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-79772'
references:
  - url: >-
      https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-wx95-c6cv-8532
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/nokogiri-before-unchecked-return-value-canonicalize
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00246
epssPercentile: 0.16156
ingestedAt: '2026-08-29T21:42:33.569Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
