LOW · CVSS 3.1 3.7 EPSS 0.4% · 33th percentile CWE-611CWE-918

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

Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-v995-44v6-5fqm

Summary

JRuby users of the Nokogiri gem are vulnerable to a Server-Side Request Forgery (SSRF) flaw when parsing untrusted XML with specific networking options enabled. Organizations using Nokogiri on JRuby should upgrade to version 1.19.5 or later to resolve this bypass of the NONET security constraint.

Who is affected

This vulnerability specifically affects JRuby environments where the NONET parse option is intended to restrict network access during XML parsing. Successful exploitation requires the application to explicitly enable DTDLOAD, DTDVALID, or NOENT options when processing untrusted XML. When these conditions are met, an attacker can bypass restrictions using short-form IPv4 addresses or absolute paths to force unauthorized network requests.

Exploitability

The vulnerability carries a low severity rating with a CVSS 3.1 base score of 3.7, indicating a requirement for specific configuration conditions and high complexity. With an EPSS score of 0.004, the likelihood of exploitation is low, and the issue is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
RubyGems nokogiri >= 0, < 1.19.5 1.19.5 bundle update nokogiri

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

FAQ

Does this vulnerability affect standard Ruby (MRI)?

No, the vulnerability is specific to JRuby environments.

Are default Nokogiri configurations affected?

No, default parse options are not affected by this vulnerability.

What is the primary risk of this flaw?

The primary risk is Server-Side Request Forgery (SSRF), where an attacker can influence the application to make unintended network requests.

Original advisory description
### Summary 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](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-8678-w3jw-xfc2): with `NONET` set, only local resources are loaded. Only JRuby is affected. Default parse options are not affected. ### Severity The Nokogiri maintainers have evaluated this as low severity. ### Mitigation Upgrade to Nokogiri 1.19.5 or later, or do not enable `DTDLOAD`, `DTDVALID` or `NOENT` for untrusted input. ### Credit This issue was responsibly reported by @arpitjain099.

References

Source records: GHSA-v995-44v6-5fqm (OSV.dev) · EPSS by FIRST, 2026-11-21.