NULL Pointer Dereference Affecting nokogiri package, versions <1.13.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (28th 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-19426879
  • published29 Aug 2026
  • disclosed25 Aug 2026
  • creditUnknown

Introduced: 25 Aug 2026

NewCVE-2022-50998  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.13.9 or higher.

Overview

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

Affected versions of this package are vulnerable to NULL Pointer Dereference via the XML parsing process. An attacker can cause denial of service or memory corruption by submitting specially crafted XML input that triggers entity reference cycles or integer overflows.

CVSS Base Scores

version 4.0
version 3.1