Out-of-Bounds Read Vulnerability in Nokogiri XML Library for Ruby
CVE-2026-57235
6.3MEDIUM
What is CVE-2026-57235?
Nokogiri, an open source library for parsing XML and HTML in Ruby, is affected by a vulnerability that allows out-of-bounds read due to improper index handling in the Nokogiri::XML::NodeSet#[] method. This occurs when a large negative index is applied, bypassing the bounds checks and leading to potential crashes in CRuby or incorrect results in JRuby. The issue has been resolved in version 1.19.4, emphasizing the importance of updating to safeguard applications.
Affected Version(s)
nokogiri < 1.19.4
