VDB

CVE-2026-57438

CVE-2026-57438 PUBLISHED CVSS 2.2 LOW

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.

PackageEcosystemFixed in
ruby-nokogiriAlpine1.19.4-r0

Risk scores

CVSS 4.0
2.2
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:U

Affected products

VendorProductVersions
sparklemotionnokogiri< 1.19.4
alpineruby-nokogiri0
sparklemotionnokogiri
sparklemotionnokogiri0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›