PoC Monitor
← All CVEs
CVE-2026-57235published 25 Jun 2026 14:31 UTCData: JSON · API

Nokogiri

Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::NodeSet#[] (and its alias #slice) checked the requested index against the node set's bounds using a 32-bit-truncated copy of the index. A large negative index could pass the check and then be used at full width, reading outside the node set's storage. On CRuby this is an out-of-bounds read that typically crashes the process; on JRuby it is not memory-unsafe but returns an incorrect node. This vulnerability is fixed in 1.19.4.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by NVD · CWE-125
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

sparklemotion nokogiri
  • < 1.19.4

Fixed in 1.19.4

Mitigation

Upgrade nokogiri to 1.19.4 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published25 Jun 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.