Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::Document#root= validated only that the new root was a Nokogiri::XML::Node, allowing a DTD node to be set as the document root. The result is a heap use-after-free during garbage collection or finalization, leading to an invalid memory read or potentially a segfault. This vulnerability is fixed in 1.19.4.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-wjv4-x9w8-wm3h Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 1.7 · nokogiriNVD modified 2026-10-25 23:10
Affected (CPE criteria) 1
cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*
References 1
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-wjv4-x9w8-wm3h Mitigation, Vendor Advisory