Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
3.7

CVE-2026-126062: Nokogiri library on JRuby can be tricked into external requests

CVE-2026-126062 · published 6 days ago
Summary

If you use the Nokogiri XML/HTML library with JRuby and allow it to process XML that comes from an untrusted source, specially using certain options, it may ignore the setting that blocks network access. This can cause the application to reach out to internal servers or other network resources, leading to a server-side request forgery risk. Upgrade Nokogiri to version 1.19.5 or later to stop this behavior.

What to do
  • Update mike dalessio nokogiri to version 1.19.5.
  • Update bellsoft ruby-nokogiri to version 1.19.7-r0.
Affected software
Ecosystem VendorProductAffected versions
– sparklemotion nokogiri < 1.19.5
rubygems mike dalessio nokogiri < 1.19.5
Fix: upgrade to 1.19.5
Debian:12 debian ruby-nokogiri All versions
Ubuntu:Pro:14.04:LTS canonical ruby-nokogiri All versions
Alpaquita:stream bellsoft ruby-nokogiri >= 1.13.9-r1, < 1.19.7-r0
Fix: upgrade to 1.19.7-r0
Original advisory text
BELL-CVE-2026-126062
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, on JRuby, applications that parse untrusted XML with DTDLOAD, DTDVALID, or NOENT can have the NONET restriction bypassed when an external DTD or entity uses a short-form IPv4 host or uses absolute paths resolved against a network URL. The resolver can treat these identifiers as local and send a network request, potentially enabling server-side request forgery. CRuby and default parse options are not affected. This issue is fixed in version 1.19.5.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.7 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-611XML External Entity (XXE)
CWE-918Server-Side Request Forgery (SSRF)
Timeline
Published16 Nov 2026
Updated22 Nov 2026
First seen10 Nov 2026
Track software like this
Free during beta