Description
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.
Published: 2026-08-25
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via process crash
Action: Patch Immediately
AI Analysis

Impact

The vulnerability resides in Nokogiri 1.x prior to 1.19.4 when installed for CRuby. A protected helper called initialize_copy_with_args expects its source argument to be an xmlNode but performs no type validation. If a developer mistakenly passes a different type, such as a Namespace, the method reads from an xmlNs value that is out‑of‑bounds, resulting in an illegal memory read and a process crash. Because the flaw is contained in a non‑public helper that is only invoked by internal code, it cannot be triggered by normal API use or by external data; it is limited to a programming error. The immediate consequence is a denial‑of‑service when the offending code executes.

Affected Systems

Sparklemotion’s Nokogiri library running on CRuby implementations. Versions older than 1.19.4 are affected; upgrades to 1.19.4 or later fix the issue by adding a type check and raising a TypeError.

Risk and Exploitability

The CVSS score of 8.7 classifies the flaw as high severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, suggesting limited knowledge of exploitation. Because the defect requires intentional mis‑use of a protected method, exploitation would normally be limited to developers or attackers who can insert code into the application. Therefore, while the risk is high for internal developers, the practical likelihood of an external attack is low unless code is subverted or the library is extended by a malicious actor.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Nokogiri to version 1.19.4 or later to ensure the type check is in place
  • Audit application code to confirm that initialize_copy_with_args is never called with non‑Node arguments; if it is, replace the logic with a safe alternative or add a guard that verifies the type at runtime
  • If updating the library is not currently possible, flag any custom cloning logic as a potential risk and consider refactoring or encapsulating it to use only the public API

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 27 Aug 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description 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.
Title Nokogiri before 1.19.4 Invalid Memory Read via initialize_copy_with_args
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-843
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Nokogiri Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-26T16:11:11.096Z

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

Link: CVE-2026-79769

cve-icon Vulnrichment

Updated: 2026-08-26T15:58:52.771Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-26T17:17:23.700

Link: CVE-2026-79769

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-79769 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T19:30:05Z

Weaknesses
  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')