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 | Vendor | Product | Affected 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.
References
- https://github.com/sparklemotion/nokogiri/pull/3752 Patch
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-v995-44v6-5fq... Vendor Advisory
- https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d264... Patch
- https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e1... Patch
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5 URL
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-v995-...
- https://github.com/advisories/GHSA-v995-44v6-5fqm
- https://security-tracker.debian.org/tracker/CVE-2026-126062 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-126062 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-126062 Third Party Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-1260... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-126062 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2026-126062 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-611XML External Entity (XXE)
CWE-918Server-Side Request Forgery (SSRF)
Timeline
Published16 Nov 2026
Updated22 Nov 2026
First seen10 Nov 2026
Sources
CVE-2026-126062 · NVD
CVE-2026-126062 · MITRE
GHSA-v995-44v6-5fqm · GHSA
CVE-2026-126062 · OSV
UBUNTU-CVE-2026-126062 · OSV
BELL-CVE-2026-126062 · OSV
Track software like this
Free during beta