Memory Management Issue in Nokogiri Library for Ruby
CVE-2026-57435
1.7LOW
What is CVE-2026-57435?
Nokogiri, a popular open-source XML and HTML parsing library for Ruby, is susceptible to a memory management flaw. Prior to version 1.19.4, an unsafe execution path could occur when manipulating XML attribute values. This vulnerability arises when an XML attribute is replaced, which may lead to the freeing of a native child node while still being accessible through a Ruby wrapper. If Ruby code interacts with the freed child node thereafter, it risks dereferencing a dangling pointer, potentially leading to an invalid read and application crash. Version 1.19.4 and later address this critical issue, enhancing the overall stability and security of applications relying on Nokogiri.
Affected Version(s)
nokogiri < 1.19.4
