Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-g9g8-vgvw-g3v
- https://www.vulncheck.com/advisories/nokogiri-before-invalid-memory-read-via-ini
FAQ
What is CVE-2026-79769?
CVE-2026-79769 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 s...
How severe is CVE-2026-79769?
CVE-2026-79769 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-79769?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.