XML External Entity injection in Nokogiri - CVE-2020-26247

 

XML External Entity injection in Nokogiri - CVE-2020-26247

Published: September 30, 2025


Vulnerability identifier: #VU116191
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2020-26247
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: nokogiri.org
Affected software:
Nokogiri

Detailed vulnerability description

The vulnerability allows a remote user to gain access to sensitive information.

The vulnerability exists due to 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. A remote user can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.


How to mitigate CVE-2020-26247

Install updates from vendor's website.

Sources