
CVE catalog
CVE-2026-57437
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::XPathContext did not keep its source document alive for garbage collection. If an XPa
- Severity
- Medium · CVSS 4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::XPathContext did not keep its source document alive for garbage collection. If an XPathContext outlived its document and the document was collected, evaluating an XPath expression could read invalid memory and potentially segfault. This is only reachable when application code constructs an XPathContext directly and lets the document become unreachable while continuing to use the context. The normal Document#xpath, #css, and related search methods are not affected, and it is not triggerable by malicious document input. This vulnerability is fixed in 1.19.4.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-nokogiri | sid | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | forky | 1.19.4+dfsg-1 | fixed |
| Debian | ruby-nokogiri | trixie | 1.18.2+dfsg-1 | vulnerable |
| Debian | ruby-nokogiri | bookworm | 1.13.10+dfsg-2 | vulnerable |
| Cpe | ruby-nokogiri | Not reported | Not reported | vulnerable |
| Cpe | nokogiri | Not reported | 1.19.4 | fixed |
| Cpe | nokogiri | Not reported | 1.19.4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-nokogiri | source | sid | 1.19.4+dfsg-1 | not yet assigned | Not reported | [1140769] |
| Debian | ruby-nokogiri | source | forky | 1.19.4+dfsg-1 | not yet assigned | Not reported | [1140769] |
| Debian | ruby-nokogiri | source | trixie | (unfixed) | not yet assigned | Not reported | [1140769] |
| Debian | ruby-nokogiri | source | bookworm | (unfixed) | not yet assigned | Not reported | [1140769] |
| Cpe | nokogiri | cpe | Not reported | 1.19.4 | Not reported | Not reported | Not reported |
| Cpe | nokogiri | cpe | Not reported | 1.19.4 | Not reported | NVD-CVE-2026-57437 | Not reported |
Notes
[trixie] ruby-nokogiri: Minor issue [bookworm] ruby-nokogiri: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-nokogiri]Affected
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]Affected
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-p67v-3w7g-wjg7]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-57437]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-57437]
- [https://security-tracker.debian.org/tracker/CVE-2026-57437]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57437.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]