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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (42nd 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-19426878
  • published29 Aug 2026
  • disclosed25 Aug 2026
  • creditUnknown

Introduced: 25 Aug 2026

NewCVE-2021-47996  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.11.4 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 through the processing of crafted XML documents in the xmlSchemaValidateStream or xmlEncodeEntitiesInternal functions. An attacker can cause denial of service, information disclosure, or memory corruption by submitting specially crafted XML input.

CVSS Base Scores

version 4.0
version 3.1