Use After Free Affecting nokogiri package, versions <1.13.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (37th 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-19426884
  • published29 Aug 2026
  • disclosed25 Aug 2026
  • creditUnknown

Introduced: 25 Aug 2026

NewCVE-2022-51000  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.13.2 or higher.

Overview

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

Affected versions of this package are vulnerable to Use After Free in the processing of XML documents with untrusted XSL stylesheets or when parsing untrusted documents with specific parse options enabled. An attacker can cause denial of service, memory disclosure, or execute arbitrary code by supplying crafted XML or XSL input. This is only exploitable if the application transforms XML with untrusted XSL stylesheets or parses untrusted documents with the DTDVALID option set to true and NOENT set to false.

CVSS Base Scores

version 4.0
version 3.1