CVE-2025-71346: Nokogiri before 1.18.8 Heap Buffer Under-read via XML Schema

Published Aug 25, 2026
·
Updated

Nokogiri before 1.18.8 packages a vulnerable version of libxml2 (before 2.13.8) that contains a heap-based buffer under-read (CVE-2025-32415) in the xmlSchemaIDCFillNodeTables function in xmlschemas.c. The issue can be triggered when validating against an untrusted XML Schema, or when validating untrusted documents against trusted schemas that use xsd:keyref in combination with recursively defined types that have additional identity constraints. Upstream and MITRE rate this issue as low severity.

Affected Software

2 affected components
rubygems/nokogiri<1.18.8
redhat/libxml2<2.13.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Nokogiri to a version that resolves this vulnerability.

    Fixed in 1.18.8
  2. Upgrade

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

    Patch CVE-2025-32415
  3. Upgrade

    Upgrade libxml2 to a version that resolves this vulnerability.

    Fixed in 2.13.8

Event History

Aug 25, 2026
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which XML validation workflows are affected?

The issue can be triggered by validating an untrusted XML Schema. It can also be triggered when untrusted documents are validated against trusted schemas that use xsd:keyref together with recursively defined types having additional identity constraints.

2

What must an attacker be able to provide to trigger the issue?

An attacker needs to influence an XML Schema used for validation, or provide an untrusted XML document to a vulnerable validation workflow using a trusted schema with the specified xsd:keyref and recursive-type conditions.

3

Which versions should be remediated?

Nokogiri versions before 1.18.8 package a vulnerable libxml2 version. The affected underlying libxml2 versions are before 2.13.8.

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