What’s Vulnerable › Vulnerabilities

CVE-2026-57434: Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

Description

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri contains a bug when calling certain methods on allocated-but-uninitialized native wrapper classes that inherit from Nokogiri::XML::Node. This caused a NULL pointer dereference that could crash the process. This vulnerability is fixed in 1.19.4.

Affected products

How to fix

Upgrade to a fixed version: sparklemotion nokogiri 1.19.4; Rubygems Nokogiri 1.19.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-57434 or the next vulnerability affects your stack