CVE Catalog

GHSA-g9g8-vgvw-g3vf

Unknown
Published: Translated: NVD NIST

Summary

The vulnerability in the Nokogiri library affects the protected copy helper used by Node#dup and #clone methods. It unwrapped the source argument as an xmlNode without a type check, causing an out-of-bounds read on xmlNs structure and process crash when a non-Node object (e.g. Namespace) was supplied. Version 1.19.4 adds a type check and raises TypeError.

Risk Assessment

The risk involves potential intentional process crashes by passing invalid objects to copy methods, which may disrupt applications using Nokogiri.

Recommendation

Immediately update Nokogiri to version 1.19.4 or later, which includes the fix for this vulnerability.

Other vulnerabilities in Nokogiri

See all
Original NVD description (English source)

## Summary The protected copy helper behind Node#dup and #clone unwrapped its source argument as an xmlNode without a type check. Supplying a non-Node (e.g. a Namespace) made it read an xmlNs out of bounds, crashing the process. Nokogiri 1.19.4 performs a type check and raises TypeError when an ar

Vulnerability data from NVD (NIST) · CISA KEV · EPSS