CVE-2021-28957: debian debian_linux
Vulnerability summary
CVE-2021-28957 is a medium (CVSS 6.1) vulnerability in debian debian_linux. EPSS estimates a 4.04% chance of exploitation in the next 30 days, higher than 90.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 5Timeline
- 21-03-2021PublishedVulnerability first disclosed.
- 17-12-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 3 versions- OSV · AlpineEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · PypiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · Red hatEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
4.04%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
No change 0.00 pp
From 4.04% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.launchpad.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat4 products
- python-lxml< 0:4.2.3-3.el8
- python-lxml-debugsource< 0:4.2.3-3.el8
- python3-lxml< 0:4.2.3-3.el8
- python3-lxml-debuginfo< 0:4.2.3-3.el8
Suse3 products
- python3-lxml&distro=SUSE Linux Enterprise Module for Public Cloud 12< 3.3.5-3.15.1
- python3-lxml&distro=SUSE Linux Enterprise Server 12 SP5< 3.6.1-3.6.1
- python3-lxml&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 3.6.1-3.6.1
Debian2 products
- lxml< 4.3.2-1+deb10u3 | < 3.7.1-1+deb9u4 | < 4.6.3-1
- debian_linuxEOL9.0 | 10.0
Mageia2 products
- python-lxml< 4.3.0-1.3.mga7
- python-lxml< 4.6.3-1.mga8
Alpine1 product
- py3-lxml< 4.6.3-r0
Fedoraproject1 product
- fedoraEOL33 | 34
Lxml1 product
- lxml< 4.6.3
Netapp1 product
Opensuse1 product
- translate-toolkit&distro=openSUSE Tumbleweed< 3.14.5-1.1 | < 3.3.6-1.3
Oracle1 product
PyPI1 product
- lxml< a5f9cb52079dc57477c460dbe6ba0f775e14a999 | < 4.6.3
Ubuntu1 product
- lxml< 3.5.0-1ubuntu0.4 | < 4.2.1-1ubuntu0.4 | < 4.5.0-1ubuntu0.3 | < 3.3.3-1ubuntu0.2+esm3
12 vendors · 19 products
References
40 links- bugs.launchpad.net/lxml/+bug/1888153X Refsource MISCWEBREPORTExploitIssue TrackingThird Party Advisory
- github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270X Refsource MISCWEBREPORTPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/03/msg00031.htmlMailing ListX Refsource MLISTWEBREPORTThird Party Advisory
- www.debian.org/security/2021/dsa-4880Vendor AdvisoryX Refsource DEBIANWEBAdvisoryThird Party Advisory
- github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999X Refsource MISCWEBFIXPatchThird Party Advisory
Show all 40 references
- github.com/lxml/lxmlPACKAGE
- lists.opensuse.org/archives/…Advisory