CVE-2026-79769Nokogiri before 1.19.4 Invalid Memory Read via initialize_copy_with_args
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | ruby-nokogiri | Under investigation | UBUNTU-CVE-2026-79769 | |
| Ubuntu 24.04 | ruby-nokogiri | Under investigation | UBUNTU-CVE-2026-79769 | |
| Ubuntu 22.04 | ruby-nokogiri | Fix pending | UBUNTU-CVE-2026-79769 | |
| Ubuntu 20.04 | ruby-nokogiri | Fix pending | UBUNTU-CVE-2026-79769 | |
| Ubuntu 18.04 | ruby-nokogiri | Fix pending | UBUNTU-CVE-2026-79769 | |
| Ubuntu 16.04 | ruby-nokogiri | Fix pending | UBUNTU-CVE-2026-79769 | |
| Ubuntu 14.04 | ruby-nokogiri | Fix pending | UBUNTU-CVE-2026-79769 | |
| Debian 14 | ruby-nokogiri | Fixed | 1.19.4+dfsg-1 | DEBIAN-CVE-2026-79769 |
| Debian 13 | ruby-nokogiri | Fix pending | DEBIAN-CVE-2026-79769 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- sparklemotion nokogiri: affected: before 1.19.4, 1.19.4 not affected; fixed in
1.19.4
Vendor advisories:
References
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-g9g8-vgvw-g3vf
- https://www.vulncheck.com/advisories/nokogiri-before-invalid-memory-read-via-initialize-copy-with-args
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.