Read the docs
TI-2026-66874 Aliases GHSA-9cv2-cfxc-v4v2

Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

Priority LOW 38CWE-476Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Denial of service
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-476.

Summary

### Summary 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. Nokogiri 1.19.4 checks for missing native data pointers and raises a `RuntimeError`. JRuby is not affected. ### Severity The Nokogiri maintainers have evaluated this as low severity. This is only triggered by a programming error. It requires application code to call `.allocate` directly on a native-backed class and then invoke methods on the resulting uninitialized object. It cannot be triggered by untrusted input or through normal use of the public API. ### Mitigation Upgrade to Nokogiri 1.19.4 or later. Avoid calling `.allocate` directly on Nokogiri native-backed classes. Use the documented constructors and factory methods instead. ### Credit This issue was responsibly reported by Zheng Yu from depthfirst.com.

Why it matters now

Fix Fixed nokogiri (RubyGems): 1.19.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—nokogiri (RubyGems)before 1.19.41.19.4Patch availableGHSA-9cv2-cfxc-v4v2
  • nokogiri (RubyGems) Vendor— Affected before 1.19.4 Fixed in 1.19.4 Patch available GHSA-9cv2-cfxc-v4v2

Remediation

  • Fix · GHSA-9cv2-cfxc-v4v2 nokogiri (RubyGems) Fixed in 1.19.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-9cv2-cfxc-v4v2

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences