CVSS 4.0
2.2 lowCVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:ULow (2.2) in nokogiri nokogiri. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.19.4.
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:UCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Hnokogiri (RubyGems): fixed in 1.19.4Explain CVE-2026-57438 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-57438?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-57438?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-57438 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| nokogiri:nokogiri | before 1.19.4 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-wfpw-mmfh-qq69 | RubyGems | nokogiri | <1.19.4 | 1.19.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | ruby-nokogiri | no fix listed | DEBIAN-CVE-2026-57438 |
| Debian | 14 | ruby-nokogiri | 1.19.4+dfsg-1 | DEBIAN-CVE-2026-57438 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 24.04:LTS and 6 more | ruby-nokogiri | no fix listed | UBUNTU-CVE-2026-57438 |
| Alpine | v3.24 | ruby-nokogiri | 1.19.4-r0 | ALPINE-CVE-2026-57438 |
| Azure Linux | 3 | rubygem-nokogiri | 1.19.4-1 | AZL-91062 |
| Alpaquita | stream | ruby-nokogiri | 1.19.4-r0 | BELL-CVE-2026-57438 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita.
Red Hat rates this Moderate.
A flaw was found in Nokogiri, an XML and HTML library for the Ruby programming language. When performing XInclude substitution via Nokogiri::XML::Node#do_xinclude, the library frees memory associated with replaced xi:include nodes, their children (including xi:fallback), and declared namespaces. If an application has already exposed one of these nodes or namespaces to Ruby, the corresponding Ruby object points to freed memory, which could result in invalid memory reads or writes.
Red Hat products ship Nokogiri as a dependency of several components. The impact on Red Hat products is rated Moderate because exploitation requires the application to both perform XInclude substitution and separately retain references to nodes or namespaces within the substituted elements — a combination that is uncommon in typical usage patterns. This vulnerability only affects CRuby; JRuby is not affected.
This issue is fixed in Nokogiri version 1.19.4.
Upgrade to Nokogiri 1.19.4 or later.
As a workaround for earlier versions, perform XInclude substitution at parse time (with the xinclude parse option) rather than calling #do_xinclude on a document that has already been traversed. A freshly parsed document has no nodes exposed to Ruby, so the substitution is safe.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/backend | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/zync | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/backend | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/zync | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp26/toolbox | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/backend-rhel8 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel7 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel8 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel9 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/toolbox-rhel8 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/toolbox-rhel9 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel8 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel9 | Fix deferred | |
| Red Hat Satellite 6 | rubygem-nokogiri | Fix deferred | |
| Red Hat Satellite 6 | satellite:el8/rubygem-nokogiri | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-57438.