Vulnerability · Published Dec 30, 2020 · Assigned by GitHub_M
CVE-2020-26247XXE in Nokogiri
Low 2.6
In plain English
A low-severity XML external entity in nokogiri from sparklemotion. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ruby-nokogiri | 1.11.6-r0 | ALPINE-CVE-2020-26247 |
| Alpine:v3.21 | ruby-nokogiri | 1.11.6-r0 | ALPINE-CVE-2020-26247 |
| Alpine:v3.22 | ruby-nokogiri | 1.11.6-r0 | ALPINE-CVE-2020-26247 |
| Alpine:v3.23 | ruby-nokogiri | 1.11.6-r0 | ALPINE-CVE-2020-26247 |
| Alpine:v3.24 | ruby-nokogiri | 1.11.6-r0 | ALPINE-CVE-2020-26247 |
| Debian:12 | ruby-nokogiri | 1.11.1+dfsg-1 | DEBIAN-CVE-2020-26247 |
| Debian:13 | ruby-nokogiri | 1.11.1+dfsg-1 | DEBIAN-CVE-2020-26247 |
| Debian:14 | ruby-nokogiri | 1.11.1+dfsg-1 | DEBIAN-CVE-2020-26247 |
| RubyGems | nokogiri | 1.11.0 | GHSA-vr8q-g5c7-m54m |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sparklemotion | nokogiri | < 1.11.0.rc4 |
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
References
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m
- https://rubygems.org/gems/nokogiri
- https://hackerone.com/reports/747489
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4
- https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b
- [debian-lts-announce] 20210606 [SECURITY] [DLA 2678-1] ruby-nokogiri security update mailing-list
- GLSA-202208-29 vendor-advisory
- [debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update mailing-list