---
id: CVE-2026-79769
title: >-
  Nokogiri versions before 1.19.4 contain a possible invalid (out-of-bounds)
  memory read in the protected internal Node#initialize_copy_with_args helper
  behind Node#dup and #clone, which unwrapped its source argument as an xmlNode
  without …
summary: >-
  Nokogiri versions before 1.19.4 contain a possible invalid (out-of-bounds)
  memory read in the protected internal Node#initialize_copy_with_args helper
  behind Node#dup and #clone, which unwrapped its source argument as an xmlNode
  without …
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-843
published: '2026-08-25'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-79769'
references:
  - url: >-
      https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-g9g8-vgvw-g3vf
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/nokogiri-before-invalid-memory-read-via-initialize-copy-with-args
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00306
epssPercentile: 0.20805
ingestedAt: '2026-09-24T20:51:40.226Z'
---

## Overview

Nokogiri versions before 1.19.4 contain a possible invalid (out-of-bounds) memory read in the protected internal Node#initialize_copy_with_args helper behind Node#dup and #clone, which unwrapped its source argument as an xmlNode without a type check. If application code calls this protected method with a non-Node argument (e.g., a Namespace), it reads an xmlNs out of bounds, crashing the process. This is only triggerable by a programming error and cannot be triggered by untrusted input or normal use of the public API. Only CRuby is affected. Version 1.19.4 adds a type check and raises TypeError.

## Remediation

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