Nokogiri: XML::Schema on JRuby allows network requests when NONET is set, bypassing CVE-2020-26247
sparklemotion nokogiri
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nokogiri RubyGems |
|
|
Original description
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, the NONET parse option, which Nokogiri turns on by default for Nokogiri::XML::Schema (see CVE-2020-26247), was not correctly enforced on the JRuby implementation. As a result, a schema parsed with default options could still cause external resources to be fetched over the network, potentially enabling SSRF or XXE attacks. This vulnerability is fixed in 1.19.4.
From the CVE record · GitHub_M