Memory Corruption Vulnerability in Nokogiri XML and HTML Library
CVE-2026-57438
2.2LOW
What is CVE-2026-57438?
Nokogiri, a widely used open source library for XML and HTML processing in Ruby, exhibits a memory corruption issue in versions prior to 1.19.4. The problem arises during XInclude substitution, where the Nokogiri::XML::Node#do_xinclude method improperly handles memory. Specifically, it replaces each xi:include node in place, resulting in memory being freed while still exposing Ruby objects that reference these now-freed nodes or their associated namespaces. This mishandling could lead to invalid memory operations, potentially compromising application stability and security. The vulnerability has been addressed in version 1.19.4.
Affected Version(s)
nokogiri < 1.19.4
