PyPA Advisory Database
PYSEC-2020-62
Details
A XSS vulnerability was discovered in python-lxml's clean module. The module's parser didn't properly imitate browsers, which caused different behaviors between the sanitizer and the user's page. A remote attacker could exploit this flaw to run arbitrary HTML/JS code.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | lxml | From 1.2 before 4.6.2 (fixed in 4.6.2) |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1901633
- https://www.debian.org/security/2020/dsa-4810
- https://lists.debian.org/debian-lts-announce/2020/12/msg00028.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JKG67GPGTV23KADT4D4GK4RMHSO4CIQL/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/TMHVKRUT22LVWNL3TB7HPSDHJT74Q3JK/
- https://advisory.checkmarx.net/advisory/CX-2020-4286
- https://github.com/advisories/GHSA-pgww-xf46-h92r