Red Hat VEX
RHVEX-CVE-2021-43818
python-lxml: HTML Cleaner allows crafted and SVG embedded scripts to pass through
Details
There's a flaw in python-lxml's HTML Cleaner component, which is responsible for sanitizing HTML and Javascript. An attacker who is able to submit a crafted payload to a web service using python-lxml's HTML Cleaner may be able to trigger script execution in clients such as web browsers. This can occur because the HTML Cleaner did not remove scripts within SVG images in data URLs such as <img src="">. XSS can result in impacts to the integrity and availability of the web page, as well as a potential impact to data confidentiality in some circumstances.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | python-lxml | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-lxml | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-lxml-docs | All versions, no fix (out of support scope) |