Back to search
CVE-2021-28957
Published: Mar 21, 2021
Modified: Dec 17, 2025
PUBLISHED
Description
An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safe_attrs_only and forms arguments, the Cleaner class does not remove the formaction attribute allowing for JS to bypass the sanitizer. A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. This issue is patched in lxml 4.6.3.
| Vendor | Product | Versions |
|---|---|---|
n/a | n/a | affected n/a |
References
https://bugs.launchpad.net/lxml/+bug/1888153
x_refsource_MISC
[debian-lts-announce] 20210324 [SECURITY] [DLA 2606-1] lxml security update
mailing-list
x_refsource_MLIST
DSA-4880
vendor-advisory
x_refsource_DEBIAN
FEDORA-2021-28723f9670
vendor-advisory
x_refsource_FEDORA
FEDORA-2021-4cdb0f68c7
vendor-advisory
x_refsource_FEDORA
https://www.oracle.com/security-alerts/cpuoct2021.html
x_refsource_MISC
https://security.netapp.com/advisory/ntap-20210521-0004/
x_refsource_CONFIRM
GLSA-202208-06
vendor-advisory
x_refsource_GENTOO
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now