PT-2020-6126
CVE-2021-28957
·
Published
2020-07-19
·
Updated
2026-10-31
Description by
CVSS 3.1
6.1
MediumMetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/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.
Found an issue in the description? Have something to add? Feel free to write us 👾