VDB

ALPINE-CVE-2021-28957

ALPINE-CVE-2021-28957 PUBLISHED CVSS 6.099999904632568 MEDIUM

Record from OSV · Published March 21, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
py3-lxmlAlpine:v3.164.6.3-r0
py3-lxmlAlpine:v3.204.6.3-r0
py3-lxmlAlpine:v3.214.6.3-r0
py3-lxmlAlpine:v3.194.6.3-r0
py3-lxmlAlpine:v3.184.6.3-r0
py3-lxmlAlpine:v3.224.6.3-r0
py3-lxmlAlpine:v3.174.6.3-r0
py3-lxmlAlpine:v3.234.6.3-r0
py3-lxmlAlpine:v3.244.6.3-r0

Risk scores

CVSS 3.1
6.099999904632568
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
Alpine:v3.16py3-lxml4.2.4-r0, 4.4.1-r0, 4.6.2-r0
Alpine:v3.20py3-lxml2.2.8-r0, 0, 2.2.6-r0
Alpine:v3.21py3-lxml4.4.0-r0, 4.1.0-r1, 3.6.4-r0
Alpine:v3.19py3-lxml2.2.6-r0, 0, 2.2.8-r0
Alpine:v3.18py3-lxml4.1.0-r0, 3.6.4-r0, 4.4.1-r1
Alpine:v3.22py3-lxml4.5.0-r0, 3.4.0-r0, 4.3.3-r0
Alpine:v3.17py3-lxml0, 2.2.6-r0, 2.2.8-r0
Alpine:v3.23py3-lxml3.8.0-r0, 0, 2.2.6-r0
Alpine:v3.24py3-lxml0

Timeline

  • Mar 21, 2021 CVE Published
  • Jun 15, 2026 CVE Updated
  • Aug 8, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln ALPINE-CVE-2021-28957
vulnetix vdb fixes ALPINE-CVE-2021-28957

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/ALPINE-CVE-2021-28957/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›