CVE-2026-57235
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.
- Affected products
- Nokogiri
- Nokogiri
- < 1.19.4
- Fix
- Available
- CVSS 3.1
- 8.2 HIGH
- EPSS
- 0.3% (27th percentile)
- Weakness
- CWE-125, CWE-190
- NVD status
- Analyzed
- Published
- 2026-06-25
No indexed exploits for CVE-2026-57235 yet
Our index is partial: it proves presence, never absence
No exploit for CVE-2026-57235 has been indexed yet. Our index is built from live traffic and upstream syncs, so this page can only say what it knows — not that no exploit exists.