Finding and attribution
Nokogiri truncates a large negative index to 32 bits during its bounds check, then uses the original full-width value, allowing an out-of-bounds read on CRuby. On JRuby this returns an incorrect node without memory-unsafety.
Product: Nokogiri. AI system: depthfirst AI security agents (specific model not identified for this Ruby research). Team / organization: depthfirst / respective project maintainers.
CVE identifiers: CVE-2026-57235.
AI and human contribution (source account): depthfirst’s primary July 27, 2026 Ruby ecosystem report identifies CVE-2026-57235 as an issue uncovered in the research, and says its AI security agents analyzed the projects and validated each finding with a triggering input, reproduction script and evidence such as ASan output before manual review. The issue-specific section describes this exact vulnerability. The affected project maintainer advisory validates the vulnerability and fix. No specific model or per-case human/agent split is stated.
Human involvement is only described where the source account establishes it; unknown involvement does not mean none. Vendor confirmation of a flaw does not confirm every claim about AI contribution.
Discovery context: The maintainer advisory and CNA record provide public dates for CVE-2026-57235; the depthfirst account is dated 2026-07-27. The sources do not report exploitation in the wild or establish zero-day status.
Remediation status: fix documented. 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. This documents upstream package version guidance and does not establish downstream distribution patch state.
A source-documented fix does not establish installed patches or current safety. Source checking does not independently reproduce the finding or establish observed exploitation.
Disclosed 25 Jun 2026. AI attribution dated 27 Jul 2026. Sources checked 17 Nov 2026; these are separate dates, not a live installation check.
Recorded CVSS: Medium · highest recorded score 6.3. Documented technical effects: denial of service.
Severity, consequences and exploitation evidence
Case grouping uses the highest recorded CVSS score, with its version-specific severity band. It is descriptive, not a combined or editorial risk index. All recorded assessments remain below; scores from different versions and sources may disagree. CVSS specifications define version-specific scoring and severity bands.
- CVE-2026-57235: CVSS 4.0 · 6.3 (Medium) ·
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N. CNA CVE Program record · checked 17 Nov 2026.
CVE-2026-57235: denial of service.
Prerequisites / affected scope: An application must pass an attacker-controlled integer to Nokogiri::XML::NodeSet#[] or #slice; memory-safety impact is limited to CRuby..
Exploitation evidence: Maintainers describe a controlled crash and possible memory disclosure on CRuby; the article describes upstream discovery/validation. No exploitation in the wild is established.. Impact source · checked 17 Nov 2026.
Documented fix: 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. This documents upstream package version guidance and does not establish downstream distribution patch state.