ALPINE-CVE-2021-28957

Source
https://security.alpinelinux.org/vuln/CVE-2021-28957
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json
JSON Data
https://api.test.osv.dev/v1/vulns/ALPINE-CVE-2021-28957
Upstream
Published
2021-03-21T05:15:13.367Z
Modified
2026-06-15T18:18:07.880932760Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

An XSS vulnerability was discovered in python-lxml's clean module versions before 4.6.3. When disabling the safeattrsonly 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.

References

Affected packages

Alpine:v3.16
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.17
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.18
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.19
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.20
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.21
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.22
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.23
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"
Alpine:v3.24
py3-lxml

Package

Name
py3-lxml
Purl
pkg:apk/alpine/py3-lxml?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.6.3-r0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2021-28957.json"