Advisory

GHSA-v995-44v6-5fqm

Also known as: CVE-2026-126062

Summary

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

Details

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: 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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-11-10 20:52 UTC
Modified
2026-11-10 21:00 UTC

Affected packages and fixes

nokogiri

RubyGems · All systems

Affected

  • introduced 0, fixed 1.19.5 (ecosystem)

Fixed versions

1.19.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences