CVE-2026-126062 Nokogiri : Possible SSRF on JRuby when resolving external DTDs or entities with `NONET` set
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-126062?
CVE-2026-126062 is a low-severity vulnerability in sparklemotion nokogiri, published on 10 Nov 2026.
Official description
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.
Which versions are affected by CVE-2026-126062?
1 open source package ship an affected version, including nokogiri.
| Package | Affected | Fixed in |
|---|---|---|
nokogiri RubyGems | All versions | 1.19.5 |
How do I fix CVE-2026-126062?
Upgrade nokogiri to 1.19.5 or later.
Is CVE-2026-126062 being exploited?
There is no known exploitation of CVE-2026-126062 in the wild and no public exploit code.
Sources
Also known as AZL-113335, DEBIAN-CVE-2026-126062, GHSA-v995-44v6-5fqm, UBUNTU-CVE-2026-126062.