RubyGems
CVE-2026-126062
JRuby: NONET is bypassed for external DTDs and entities when the systemId uses a short-form IPv4 host
- Severity
- Low 3.7
- Published
- 10 Nov 2026
- Last changed
- 10 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.19.5
- Exploit chance
- 0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N- Also known as
- GHSA-v995-44v6-5fqm
- Sources
- OSV.dev and GitHub
Description
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: with NONET set, only local resources are loaded.
Only JRuby is affected. Default parse options are not affected.
Workarounds
Upgrade to Nokogiri 1.19.5 or later, or do not enable DTDLOAD, DTDVALID or NOENT for untrusted input.
Affected software
| Software | Affected versions |
|---|---|
nokogiriRubyGems · osv:RubyGems:nokogiri |
|
About nokogiri
- Total downloads (RubyGems)
- 1,307,106,774RubyGems, 24 Nov 2026
Vulnerabilities in nokogiri
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-126064Nokogiri: Use-After-Free in Nokogiri when replacing an attribute valueLow 10 Nov 2026
- CVE-2026-126063Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializerLow 10 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126062
- GitHub Advisory Database https://github.com/advisories/GHSA-v995-44v6-5fqm