PT-2026-52451 · Rubygems · Nokogiri

·

CVE-2026-57436

·

Published

2026-06-19

·

Updated

2026-06-27

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions Nokogiri versions prior to 1.19.4
Description In the Nokogiri XML and HTML library for Ruby, the root= method of Nokogiri::XML::Document only validates that the new root is a Nokogiri::XML::Node. This allows a DTD (Document Type Definition) node to be set as the document root, resulting in a heap use-after-free during garbage collection or finalization. This condition can lead to an invalid memory read or a segmentation fault (segfault), which is an abrupt termination of a program due to an illegal memory access.
Recommendations Update to version 1.19.4.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-91077
CVE-2026-57436
GHSA-WJV4-X9W8-WM3H

Affected Products

Nokogiri