CVE-2026-126062
nokogiri: nokogiri: Server-Side Request Forgery via network restriction bypass on JRuby
Overview
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.
Source: OX vulnerability database
Severity
3.7 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness: CWE-611, CWE-918
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | nokogiri | <1.19.5 | 1.19.5 |
Open a package to see all its vulnerabilities.
Operating systems · 16 fixes
chainguard 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| pact-broker-docker | 2.142.0.2.120.0-r4 | |
| pact-broker-docker-fips | 2.142.0.2.120.0-r5 | |
| pghero +1 | 3.8.0-r13 | |
| kube-logging-operator | 6.9.0-r13 | |
| ruby3-4-rails-7-2 | 7.2.4-r2 | |
| ruby4-0-rails-7-2 | 7.2.4-r4 |
3 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | ruby-nokogiri | affected |
| 12 | ruby-nokogiri | affected |
| 13 | ruby-nokogiri | affected |
| 14 | ruby-nokogiri | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-nokogiri | affected |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| kube-logging-operator | 6.9.0-r13 | |
| logstash-9-4 | 9.4.9-r1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-126062
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-v995-44v6-5fqm.yml
- github.com https://github.com/sparklemotion/nokogiri
- github.com https://github.com/sparklemotion/nokogiri/commit/97f41b65f4ee0cac859b87f0b26d2648c4806cb8
- github.com https://github.com/sparklemotion/nokogiri/commit/e448ca2827a9198644610fb730259e12baacdeac
- github.com https://github.com/sparklemotion/nokogiri/pull/3752
- github.com https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
- github.com https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-v995-44v6-5fqm
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126062
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-126062
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.