PT-2026-52475 · Rubygems · Nokogiri

·

CVE-2026-57438

·

Published

2026-06-19

·

Updated

2026-06-27

CVSS v3.1

6.6

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Name of the Vulnerable Software and Affected Versions Nokogiri versions prior to 1.19.4
Description An issue exists in the XInclude substitution process where the do xinclude() function in Nokogiri::XML::Node replaces each <xi:include> element in place. This process frees the include node, its children (such as <xi:fallback> and its descendants), and any associated namespaces. If an application has already exposed these nodes or namespaces to Ruby, the resulting Ruby object points to freed memory, which can lead to invalid memory reads or writes.
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-91062
CVE-2026-57438
GHSA-WFPW-MMFH-QQ69

Affected Products

Nokogiri