CVE-2021-28957

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.
Cross-site Scripting
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
6.1 MEDIUM
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 66%
VendorProductVersion
lxmllxml
𝑥
< 4.6.3
debiandebian_linux
9.0
debiandebian_linux
10.0
netappsnapcenter
-
oraclezfs_storage_appliance_kit
8.8
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
lxml
bullseye (security)
4.6.3+dfsg-0.1+deb11u1
fixed
bullseye
4.6.3+dfsg-0.1+deb11u1
fixed
bookworm
4.9.2-1
fixed
sid
5.3.0-1
fixed
trixie
5.3.0-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
lxml
groovy
Fixed 4.5.2-1ubuntu0.4
released
focal
Fixed 4.5.0-1ubuntu0.3
released
bionic
Fixed 4.2.1-1ubuntu0.4
released
xenial
Fixed 3.5.0-1ubuntu0.4
released
trusty
Fixed 3.3.3-1ubuntu0.2+esm3
released