CVE-2020-26247Nokogiri
Medium 4.3
Follow: this CVE · Nokogiri · Nokogiri We alert you by email or Slack (account required).
- Priority
- 26
- CVSS 3.1
- 4.3
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- Yes
- Published
- Dec 30, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nokogiri.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | nokogiri |
< 1.11.0 |
1.11.0 |
gem "nokogiri", ">= 1.11.0" |
Per OSV / GitHub Advisories (GHSA-vr8q-g5c7-m54m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nokogiri | nokogiri | < 1.11.0 |
| nokogiri | nokogiri | 1.11.0 |
| nokogiri | nokogiri | 1.11.0 |
| nokogiri | nokogiri | 1.11.0 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Mitigation Third Party Advisory
- hackerone.com Permissions Required
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- rubygems.org Product Third Party Advisory
- security.gentoo.org Third Party Advisory