XML External Entity (XXE) Injection Affecting ruby2.5-rubygem-nokogiri package, versions <1.8.5-3.6.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.19% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML External Entity (XXE) Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SLES152-RUBY25RUBYGEMNOKOGIRI-2689802
  • published14 Apr 2022
  • disclosed1 Feb 2021

Introduced: 1 Feb 2021

CVE-2020-26247  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade SLES:15.2 ruby2.5-rubygem-nokogiri to version 1.8.5-3.6.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.5-rubygem-nokogiri package and not the ruby2.5-rubygem-nokogiri package as distributed by SLES. See How to fix? for SLES:15.2 relevant fixed versions and status.

Nokogiri is a Rubygem providing HTML, XML, SAX, and Reader parsers with XPath and CSS selector support. In Nokogiri before version 1.11.0.rc4 there is an XXE vulnerability. XML Schemas parsed by Nokogiri::XML::Schema are trusted by default, allowing external resources to be accessed over the network, potentially enabling XXE or SSRF attacks. This behavior is counter to the security policy followed by Nokogiri maintainers, which is to treat all input as untrusted by default whenever possible. This is fixed in Nokogiri version 1.11.0.rc4.

CVSS Scores

version 3.1