Buffer Under-read Affecting nokogiri package, versions <1.18.8


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-NOKOGIRI-9789079
  • published22 Apr 2025
  • disclosed21 Apr 2025
  • creditChen Lihai, Yu Dongsong, Zhang Yuqing

Introduced: 21 Apr 2025

NewCVE-2025-32415  (opens in a new tab)
CWE-127  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.18.8 or higher.

Overview

nokogiri is a gem for parsing HTML, XML, SAX, and Reader.

Affected versions of this package are vulnerable to Buffer Under-read in the xmlSchemaIDCFillNodeTables() function. An attacker can cause partial denial of service by by validating a malicious XML document against an XML schema using xsd:keyref in combination with recursively defined types that have additional identity constraints.

CVSS Base Scores

version 4.0
version 3.1