CVE-2020-26247
MEDIUM 4.3CVSS 3.1Nokogiri::XML::Schema trusts input by default, exposing risk of XXE vulnerability
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.
- Published
- 30 Dec 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-611
- Also known as
- GHSA-vr8q-g5c7-m54m
- Sources
- NVDJSONOSV GHSA-vr8q-g5c7-m54mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nokogiri | nokogiricpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:* |
< 1.11.0 | 1.11.0 |
| NVD | nokogiri | nokogiricpe:2.3:a:nokogiri:nokogiri:1.11.0:rc1:*:*:*:ruby:*:* |
= 1.11.0 | |
| NVD | nokogiri | nokogiricpe:2.3:a:nokogiri:nokogiri:1.11.0:rc2:*:*:*:ruby:*:* |
= 1.11.0 | |
| NVD | nokogiri | nokogiricpe:2.3:a:nokogiri:nokogiri:1.11.0:rc3:*:*:*:ruby:*:* |
= 1.11.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | nokogiri | < 1.11.0 | 1.11.0 |
References
- https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b · Patch, Third Party Advisory, WEB
- https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4 · Release Notes, Third Party Advisory, WEB
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m · Mitigation, Third Party Advisory, WEB
- https://hackerone.com/reports/747489 · Permissions Required, WEB
- https://lists.debian.org/debian-lts-announce/2021/06/msg00007.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html · Mailing List, Third Party Advisory, WEB
- https://rubygems.org/gems/nokogiri · Product, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202208-29 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-26247 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2020-26247.yml · WEB
- https://github.com/sparklemotion/nokogiri · PACKAGE
- https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md#v1110--2021-01-03 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 30 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Dec 2020)