XML External Entity (XXE) Injection Affecting ruby-nokogiri package, versions <1.11.1+dfsg-1


Severity

Recommended
low

Based on Debian security rating

    Threat Intelligence

    EPSS
    0.16% (54th 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 ID SNYK-DEBIANUNSTABLE-RUBYNOKOGIRI-1054967
  • published 31 Dec 2020
  • disclosed 30 Dec 2020

How to fix?

Upgrade Debian:unstable ruby-nokogiri to version 1.11.1+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-nokogiri package and not the ruby-nokogiri package as distributed by Debian. See How to fix? for Debian:unstable 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
Expand this section

NVD

4.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

SUSE

5.3 medium
Expand this section

Red Hat

4.3 medium