Server-side Request Forgery (SSRF) Affecting nokogiri package, versions <1.19.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (33rd 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 Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-NOKOGIRI-22409039
  • published11 Nov 2026
  • disclosed10 Nov 2026
  • creditUnknown

Introduced: 10 Nov 2026

NewCVE-2026-126062  (opens in a new tab)
CWE-611  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.19.5 or higher.

Overview

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

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the handling of the NONET parse option on JRuby. An attacker can make the application send network requests by supplying XML with an external DTD or entity whose system identifier uses a short-form IPv4 host such as http://127.1/, or an absolute path such as /x.dtd in a document parsed from a network URL, because NONET does not block either form. Only JRuby is affected, and only when the application parses untrusted XML with DTDLOAD, DTDVALID, or NOENT enabled, which the default parse options do not.

CVSS Base Scores

version 4.0
version 3.1