Out-of-Bounds Affecting nokogiri package, versions <1.13.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (23rd 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-19426880
  • published29 Aug 2026
  • disclosed25 Aug 2026
  • creditUnknown

Introduced: 25 Aug 2026

NewCVE-2022-50999  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.13.5 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 via the buffer handling process in the packaged libxml2 component. An attacker can cause out-of-bounds memory writes by submitting specially crafted multi-gigabyte XML files, potentially leading to information disclosure, data modification, or denial of service.

CVSS Base Scores

version 4.0
version 3.1