ruby-nokogiri — security advisory
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.
- Products
- ruby-nokogiri
- Affected versions
- 1.13.10+dfsg-2, 1.14.2+dfsg-1, 1.14.3+dfsg-1, 1.14.3+dfsg-2, 1.15.4+dfsg-1, 1.16.0+dfsg-1, 1.16.0+dfsg-2, 1.16.2+dfsg-1, 1.16.4+dfsg-1, 1.17.2+dfsg-1~exp1, 1.18.10+dfsg-1, 1.18.10+dfsg-2, 1.18.10+dfsg-3, 1.18.2+dfsg-1, 1.19.1+dfsg-1, 1.19.3+dfsg-1, 1.19.4+dfsg-1
- Fixed versions
- 1.19.4+dfsg-1
- CVEs
- CVE-2026-57437
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 12:21 UTC · Revision 2
Source evidence
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.
osv:DEBIAN-CVE-2026-57437
ruby-nokogiri
Fixed versions: Not specified
ruby-nokogiri
Fixed versions: Not specified
ruby-nokogiri
Fixed versions: 1.19.4+dfsg-1
Complete source record
{
"id": "c33261f807888846dd2fe4e04d2926fe8e2806a32e862bf5222077c519dc0806",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-57437",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-57437",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-57437",
"products": [
{
"name": {
"value": "ruby-nokogiri",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.13.10+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.14.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.14.3+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.14.3+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.15.4+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.16.0+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.16.0+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.16.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.16.4+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.2+dfsg-1~exp1",
"evidence": "/affected/0/versions"
},
{
"value": "1.18.10+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.18.10+dfsg-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.18.10+dfsg-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.18.2+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.19.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.19.3+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.19.4+dfsg-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ruby-nokogiri",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.18.10+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.18.10+dfsg-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.18.10+dfsg-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.18.2+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.19.1+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.19.3+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.19.4+dfsg-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "ruby-nokogiri",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.19.4+dfsg-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.18.10+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.10+dfsg-2",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.10+dfsg-3",
"evidence": "/affected/2/versions"
},
{
"value": "1.18.2+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.1+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.19.3+dfsg-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-57437",
"aliases": [
"DEBIAN-CVE-2026-57437"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-nokogiri",
"purl": "pkg:deb/debian/ruby-nokogiri?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.13.10+dfsg-2",
"1.14.2+dfsg-1",
"1.14.3+dfsg-1",
"1.14.3+dfsg-2",
"1.15.4+dfsg-1",
"1.16.0+dfsg-1",
"1.16.0+dfsg-2",
"1.16.2+dfsg-1",
"1.16.4+dfsg-1",
"1.17.2+dfsg-1~exp1",
"1.18.10+dfsg-1",
"1.18.10+dfsg-2",
"1.18.10+dfsg-3",
"1.18.2+dfsg-1",
"1.19.1+dfsg-1",
"1.19.3+dfsg-1",
"1.19.4+dfsg-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57437.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-nokogiri",
"purl": "pkg:deb/debian/ruby-nokogiri?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.18.10+dfsg-1",
"1.18.10+dfsg-2",
"1.18.10+dfsg-3",
"1.18.2+dfsg-1",
"1.19.1+dfsg-1",
"1.19.3+dfsg-1",
"1.19.4+dfsg-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57437.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19.4+dfsg-1"
}
]
}
],
"package": {
"name": "ruby-nokogiri",
"purl": "pkg:deb/debian/ruby-nokogiri?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.18.10+dfsg-1",
"1.18.10+dfsg-2",
"1.18.10+dfsg-3",
"1.18.2+dfsg-1",
"1.19.1+dfsg-1",
"1.19.3+dfsg-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-57437.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T11:47:37.289345746Z",
"provider": "osv",
"upstream": [
"CVE-2026-57437"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-57437"
]
},
"related_cves": [
{
"value": "CVE-2026-57437",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 450903,
"published_at": "2026-06-25T15:16:41.317+00:00"
}