PT-2020-6126 · Lxml+9 · Lxml+9
Published
2020-07-19
·
Updated
2025-01-14
·
CVE-2021-28957
CVSS v3.1
9.1
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
lxml versions prior to 4.6.3
Description
A remote attacker could exploit this flaw to run arbitrary JS code on users who interact with incorrectly sanitized HTML. The issue arises when the safe attrs only and forms arguments are disabled in the Cleaner class, allowing the formaction attribute to bypass the sanitizer.
Recommendations
For versions prior to 4.6.3, update to version 4.6.3 to resolve the issue. As a temporary workaround, consider enabling the safe attrs only and forms arguments in the Cleaner class to prevent the formaction attribute from bypassing the sanitizer. Restrict access to the Cleaner class until the issue is resolved.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu
Lxml