CVE-2026-57438
Nokogiri: Possible Use-After-Free in XInclude Processing
Reported by github_m · Published June 25, 2026
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, XInclude substitution performed by Nokogiri::XML::Node#do_xinclude replaced each <xi:include> in place, freeing the include node along with its children (such as <xi:fallback> and its descendants) and any namespaces declared on them. If an application had already exposed one of those nodes or namespaces to Ruby, the corresponding Ruby object was left pointing at freed memory. Using the object could result in invalid reads or writes to memory. This vulnerability is fixed in 1.19.4.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby-nokogiri | Alpine | 1.19.4-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| sparklemotion | nokogiri | < 1.19.4 |
| alpine | ruby-nokogiri | 0 |
| sparklemotion | nokogiri | |
| sparklemotion | nokogiri | 0 |
Timeline
- Jun 25, 2026 CVE Published
- Jun 26, 2026 Coalition ESS Score
- Jun 26, 2026 Security Advisory
- Aug 7, 2026 EPSS Score (6 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-57438
vulnetix vdb fixes CVE-2026-57438
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-57438/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart