Out-of-bounds Read Affecting nokogiri package, versions <1.18.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (21st 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-10674192
  • published10 Jul 2025
  • disclosed11 Jun 2025
  • creditNikita Sveshnikov

Introduced: 11 Jun 2025

CVE-2025-49796  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.18.9 or higher.

Overview

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

Affected versions of this package are vulnerable to Out-of-bounds Read due to improper namespace processing of sch:name elements in xmlSchematronFormatReport() function. An attacker can cause a denial of service or potentially execute arbitrary code by providing specially crafted XML input.

CVSS Base Scores

version 4.0
version 3.1