PT-2021-6092 · Lxml+10 · Lxml+10
Published
2021-12-12
·
Updated
2023-10-24
·
CVE-2021-43818
CVSS v2.0
8.5
High
| Vector | AV:N/AC:L/Au:N/C:P/I:C/A:N |
Name of the Vulnerable Software and Affected Versions
lxml versions prior to 4.6.5
Description
The HTML Cleaner in lxml.html allows certain crafted script content to pass through, as well as script content in SVG files embedded using data URIs. This can be exploited by a remote attacker to perform cross-site scripting attacks using specially crafted SVG files. Users that employ the HTML cleaner in a security-relevant context are at risk.
Recommendations
For versions prior to 4.6.5, upgrade to lxml 4.6.5 to receive a patch.
As a temporary workaround, consider disabling the HTML Cleaner in lxml.html until a patch is available.
Restrict the use of the HTML Cleaner in security-relevant contexts to minimize the risk of exploitation.
Fix
Command Injection
Special Elements Injection
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Lxml