All vulnerabilities

RubyGems

CVE-2026-126062

JRuby: NONET is bypassed for external DTDs and entities when the systemId uses a short-form IPv4 host

Severity
Low 3.7
Published
10 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.19.5
Exploit chance
0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
XML external entities (XXE) (CWE-611)Server-side request forgery (CWE-918)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-v995-44v6-5fqm
Sources
OSV.dev and GitHub

Description

On JRuby, the NONET parse option did not block an external DTD or entity whose system identifier used a short-form IPv4 host, such as http://127.1/ or http://169.254.43518/, or was an absolute path such as /x.dtd in a document parsed from a network URL. An application that parses untrusted XML with DTDLOAD, DTDVALID or NOENT could be made to send network requests, potentially enabling SSRF.

Nokogiri 1.19.5 applies the XML::Schema check from GHSA-8678-w3jw-xfc2: with NONET set, only local resources are loaded.

Only JRuby is affected. Default parse options are not affected.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Upgrade to Nokogiri 1.19.5 or later, or do not enable DTDLOAD, DTDVALID or NOENT for untrusted input.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
nokogiriRubyGems · osv:RubyGems:nokogiri
  • Every version before 1.19.5

About nokogiri

Total downloads (RubyGems)
1,307,106,774RubyGems, 24 Nov 2026

Vulnerabilities in nokogiri

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
0
Known exploited
0
Search the list for nokogiri

References