CVE-2026-57438: Nokogiri: Possible Use-After-Free in XInclude Processing

Published Jun 25, 2026
·
Updated

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#doxinclude 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.

Other sources

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#doxinclude 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.

IBM

Nokogiri: Possible Use-After-Free in XInclude Processing

Microsoft

Affected Software

4 affected componentsFixes available
Nokogiri Nokogiri<1.19.4
Nokogiri Nokogiri Ruby<1.19.4
Microsoft azl3 rubygem-nokogiri 1.15.4-1<1.19.4-1
1.19.4-1
IBM Aspera Faspex 5<=5.0.0 - 5.0.15.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.19.4-1
  2. Upgrade

    Upgrade Nokogiri to a version that resolves this vulnerability.

    Fixed in 1.19.4

Event History

Jun 25, 2026
CVE Published
via MITRE·02:39 PM
Data Sourced
via MITRE·02:39 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via Microsoft·08:16 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:16 AM
DescriptionSeverity
Jul 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2026-57438?

CVE-2026-57438 is a vulnerability in Nokogiri affecting versions prior to 1.19.4 that involves a possible use-after-free condition during XInclude processing.

2

What is the severity of CVE-2026-57438?

CVE-2026-57438 has a low severity rating of 2.2 according to the CVSS scoring system.

3

How do I fix CVE-2026-57438?

To fix CVE-2026-57438, users should upgrade Nokogiri to version 1.19.4 or later.

4

What type of vulnerability is CVE-2026-57438 classified as?

CVE-2026-57438 is classified as a Use After Free vulnerability.

5

Which software versions are affected by CVE-2026-57438?

CVE-2026-57438 affects Nokogiri versions prior to 1.19.4.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203