XXE in Nokogiri
CVE-2020-26247
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.
Vulnerability class: XXE (XML External Entity)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 2.6 (Low). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.012, 69.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nokogiri — versions 1.11.0
- Sparklemotion Nokogiri — versions < 1.11.0.rc4
- Debian Linux — versions 9.0, 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, Live-Hack-CVE/CVE-2020-26247, wilburhimself/gem_guard). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m (Third Party Advisory, Mitigation)
- rubygems.org/gems/nokogiri (Product, Third Party Advisory)
- hackerone.com/reports/747489 (Permissions Required)
- github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4 (Third Party Advisory, Release Notes)
- github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d9… (Patch, Third Party Advisory)
- [debian-lts-announce] 20210606 [SECURITY] [DLA 2678-1] ruby-nokogiri security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202208-29 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update (mailing-list, Mailing List, Third Party Advisory)