rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
75 stars 91 forks source link

Ensure that DTD loading is disabled in libxml2 #267

Open DemiMarie opened 1 year ago

DemiMarie commented 1 year ago

libxml2’s DTD support has been a source of numerous security vulnerabilities. librepo should ensure that it is completely disabled, meaning that a DTD (irrespective of its content) will result in a parse error. If this is not possible, librepo should check the start of the XML to ensure that no DTD can be present.