Description
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.
Published: 2026-08-25
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Nokogiri versions prior to 1.18.8 include a vulnerable copy of libxml2 (before 2.13.8) that has a heap‑based buffer under‑read in the xmlSchemaIDCFillNodeTables function within xmlschemas.c. The flaw can be exercised when validating against an untrusted XML Schema, or when validating untrusted documents against trusted schemas that use xsd:keyref together with recursively defined types that also contain identity constraints. The under‑read is classified as CWE‑125 and is deemed low severity by upstream sources and MITRE.

Affected Systems

The vendor is Sparklemotion and the product is the Nokogiri Ruby library. All releases before version 1.18.8 are affected because they bundle libxml2 versions older than 2.13.8. No further sub‑version detail is provided, so any installation of Nokogiri that has not been updated to 1.18.8 or later is exposed.

Risk and Exploitability

The CVSS score of 8.7 indicates High severity, and no EPSS score is available. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to supply or influence an XML Schema or document to the application. An attacker could trigger the under‑read to read unintended memory regions, potentially revealing sensitive data or facilitating further attacks. Because the flaw is in a continuously processing library, the risk is local to systems that ingest XML content through Nokogiri and can be mitigated through patching.

Generated by OpenCVE AI on August 25, 2026 at 16:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Nokogiri to 1.18.8 or later to remove the vulnerable libxml2 copy.
  • If an immediate update is not feasible, restrict XML parsing to trusted schemas and avoid validating untrusted documents with xsd:keyref and recursive types.
  • Disable schema validation for data sources that cannot be fully trusted, or switch to a newer XML processing library that does not embed the vulnerable libxml2.

Generated by OpenCVE AI on August 25, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Nokogiri before 1.18.8 Heap Buffer Under-read via XML Schema
First Time appeared Nokogiri
Nokogiri nokogiri
Weaknesses CWE-125
CPEs cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*
Vendors & Products Nokogiri
Nokogiri nokogiri
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nokogiri Nokogiri
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T16:16:01.093Z

Reserved: 2026-06-20T12:48:06.735Z

Link: CVE-2025-71346

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T16:16:45.320

Modified: 2026-08-25T16:16:45.320

Link: CVE-2025-71346

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T16:30:06Z

Weaknesses