
CVE catalog
CVE-2026-57235
Nokogiri is an open source XML and HTML library for…
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.
- Severity
- Medium · CVSS 6.3
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.43% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "ruby-nokogiri",
"status": "fixed",
"release": "sid",
"version": "1.19.4+dfsg-1"
},
{
"name": "ruby-nokogiri",
"status": "fixed",
"release": "forky",
"version": "1.19.4+dfsg-1"
},
{
"name": "ruby-nokogiri",
"status": "vulnerable",
"release": "trixie",
"version": "1.18.2+dfsg-1"
},
{
"name": "ruby-nokogiri",
"status": "vulnerable",
"release": "bookworm",
"version": "1.13.10+dfsg-2"
}
],
"fixed_versions": [
{
"bug": 1140769,
"name": "ruby-nokogiri",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "1.19.4+dfsg-1"
},
{
"bug": 1140769,
"name": "ruby-nokogiri",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "1.19.4+dfsg-1"
},
{
"bug": 1140769,
"name": "ruby-nokogiri",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": 1140769,
"name": "ruby-nokogiri",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "ruby-nokogiri",
"ecosystem": "cpe",
"fixed_version": "not yet fixed"
},
{
"name": "nokogiri",
"ecosystem": "cpe",
"fixed_version": "1.19.4"
},
{
"name": "nokogiri",
"ranges": [
{
"fixed": "1.19.4",
"introduced": "",
"last_affected": "",
"start_excluding": ""
}
],
"ecosystem": "cpe",
"fixed_version": "1.19.4",
"provider_record_id": "NVD-CVE-2026-57235"
}
]
}Publisher notes
[trixie] ruby-nokogiri: Minor issue [bookworm] ruby-nokogiri: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [ruby-nokogiri]Unknown
Source package: [ruby-nokogiri]
Details (2)
1.13.10+dfsg-2+b1· amd64 · bookwormAffected
nvd · ruby-nokogiri · debian · bookworm; nvd · ruby-nokogiri · debian · 12
1.13.10+dfsg-2+b1· arm64 · bookwormAffected
nvd · ruby-nokogiri · debian · bookworm; nvd · ruby-nokogiri · debian · 12
[Debian 13 (Trixie)]
- [ruby-nokogiri]Unknown
Source package: [ruby-nokogiri]
Details (2)
1.18.2+dfsg-1+b1· amd64 · trixieAffected
nvd · ruby-nokogiri · debian · 13
1.18.2+dfsg-1+b1· arm64 · trixieAffected
nvd · ruby-nokogiri · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-5prr-v3j2-97mh]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-57235]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-57235]
- [https://security-tracker.debian.org/tracker/CVE-2026-57235]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57235.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]