{"id":"CVE-2020-26247","published":"2020-12-30T00:00:00Z","modified":"2024-08-04T15:56:04Z","title":"XXE in Nokogiri","vendor":"sparklemotion","product":"nokogiri","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01214,"percentile":0.69295,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m","tags":[]},{"url":"https://rubygems.org/gems/nokogiri","tags":[]},{"url":"https://hackerone.com/reports/747489","tags":[]},{"url":"https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4","tags":[]},{"url":"https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2021/06/msg00007.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202208-29","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html","tags":["mailing-list"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":13.86},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"sparklemotion","affectedVersions":[{"vendor":"sparklemotion","product":"nokogiri","versions":["< 1.11.0.rc4"]}],"affected":[{"ecosystem":"RubyGems","package":"nokogiri","vulnerableRanges":["<1.11.0"],"patched":["1.11.0"],"from":["GHSA-vr8q-g5c7-m54m"],"provenance":"source"}],"summary":{"text":"The XML Schema parsing in the nokogiri Rubygem (sparklemotion's HTML, XML, SAX, and Reader parser library) trusts Nokogiri::XML::Schema inputs by default, so external XML entity references are resolved. An attacker who can get a crafted schema parsed, which requires high attack complexity, low privileges, and user interaction, can read limited information from or make network requests to resources the server can reach.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:48Z"},"euvd":{"id":"EUVD-2020-1507","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-18197","published":"2019-10-18","fixed":"1.10.5","kev":false},{"cve":"CVE-2019-5815","published":"2019-12-11","fixed":"1.10.5","kev":false},{"cve":"CVE-2020-7595","published":"2020-01-21","fixed":"1.10.8","kev":false,"link":{"from":"CVE-2020-7595","to":"CVE-2020-26247","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.10.8","toFixed":"1.11.0","daysApart":344}]}},{"cve":"CVE-2020-26247","published":"2020-12-30","fixed":"1.11.0","kev":false},{"cve":"CVE-2021-3517","published":"2021-05-19","fixed":"1.11.4","kev":false,"link":{"from":"CVE-2020-26247","to":"CVE-2021-3517","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.11.0","toFixed":"1.11.4","daysApart":140}]}},{"cve":"CVE-2021-3518","published":"2021-05-18","fixed":"1.11.4","kev":false,"link":{"from":"CVE-2020-26247","to":"CVE-2021-3518","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.11.0","toFixed":"1.11.4","daysApart":139}]}},{"cve":"CVE-2021-3537","published":"2021-05-14","fixed":"1.11.4","kev":false,"link":{"from":"CVE-2020-26247","to":"CVE-2021-3537","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.11.0","toFixed":"1.11.4","daysApart":135}]}}],"package":"RubyGems:nokogiri"}}