CVE-2021-43818

Related Vulnerabilities: CVE-2021-43818  

lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available.

Description

The MITRE CVE dictionary describes this issue as:

lxml is a library for processing XML and HTML in the Python language. Prior to version 4.6.5, the HTML Cleaner in lxml.html lets certain crafted script content pass through, as well as script content in SVG files embedded using data URIs. Users that employ the HTML cleaner in a security relevant context should upgrade to lxml 4.6.5 to receive a patch. There are no known workarounds available.

Additional Information

  • Bugzilla 2032569: CVE-2021-43818 python-lxml: HTML Cleaner allows crafted and SVG embedded scripts to pass through
  • (CWE-77|CWE-79): Improper Neutralization of Special Elements used in a Command ('Command Injection') or Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • FAQ: Frequently asked questions about CVE-2021-43818