Vulnerabilities · 2020 · Nokogiri
CVE-2020-26247
Nokogiri 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.
Affected products
Nokogiri, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nokogiri runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b · Patch
- github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m · Mitigation
- github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2021/06/msg00007.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/10/msg00018.html · Third Party Advisory
- rubygems.org/gems/nokogiri · Third Party Advisory
- security.gentoo.org/glsa/202208-29 · Third Party Advisory
- hackerone.com/reports/747489
- nvd.nist.gov/vuln/detail/CVE-2020-26247
- cve.org/CVERecord?id=CVE-2020-26247
More vulnerabilities in Nokogiri products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.