PT-2026-52447 · Rubygems · Nokogiri

·

CVE-2026-57235

·

Published

2026-06-19

·

Updated

2026-06-27

CVSS v3.1

8.2

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Name of the Vulnerable Software and Affected Versions Nokogiri versions prior to 1.19.4
Description Nokogiri is an open source XML and HTML library for the Ruby programming language. The Nokogiri::XML::NodeSet#[] function (and its alias slice) performs a bounds check on the requested index using a 32-bit-truncated copy. A large negative index can bypass this check and be used at full width, resulting in reading outside the node set's storage. In CRuby, this leads to an out-of-bounds read that typically crashes the process, while in JRuby, it results in the return of an incorrect node.
Recommendations Update Nokogiri to version 1.19.4.

Exploit

Fix

Integer Overflow

Out of bounds Read

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

Weakness Enumeration

Related Identifiers

AZL-91083
CVE-2026-57235
GHSA-5PRR-V3J2-97MH

Affected Products

Nokogiri