# CVE-2020-26247: XXE in Nokogiri

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2020-12-30T00:00:00.000Z
- Modified: 2026-07-08T05:59:36.466Z
- Also known as: GHSA-vr8q-g5c7-m54m
- Weaknesses: CWE-611
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sparklemotion nokogiri: < 1.11.0.rc4
- nokogiri (RubyGems): before 1.11.0
- nokogiri nokogiri: before 1.11.0; 1.11.0
- debian debian_linux: 9.0; 10.0

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-vr8q-g5c7-m54m> (mitigation, third-party-advisory, web)
- <https://rubygems.org/gems/nokogiri> (product, third-party-advisory, web)
- <https://hackerone.com/reports/747489> (permissions-required, web)
- <https://github.com/sparklemotion/nokogiri/releases/tag/v1.11.0.rc4> (release-notes, third-party-advisory, web)
- <https://github.com/sparklemotion/nokogiri/commit/9c87439d9afa14a365ff13e73adc809cb2c3d97b> (patch, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/06/msg00007.html> (mailing-list, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202208-29> (third-party-advisory, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html> (mailing-list, 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)

## Sources

- CVE List: [CVE-2020-26247](https://www.cve.org/CVERecord?id=CVE-2020-26247), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-vr8q-g5c7-m54m](https://github.com/advisories/GHSA-vr8q-g5c7-m54m), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26247](https://nvd.nist.gov/vuln/detail/CVE-2020-26247), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26247 · Whole record: https://cve.day/CVE-2020-26247.json · Rebuilt by cve.day 2026-11-25T22:57:56.608Z
