CVE-2026-57438

MEDIUM

Nokogiri: Possible Use-After-Free in XInclude Processing

Title source: cna
STIX 2.1

Description

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.

References (1)

Core 1
Core References

Scores

CVSS v3 6.6
EPSS 0.0009
EPSS Percentile 0.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416
Status published
Products (2)
nokogiri/nokogiri < 1.19.4
sparklemotion/nokogiri < 1.19.4
Published Jun 25, 2026
Tracked Since Jun 25, 2026