CVE-2021-23980
Cross-site scripting in Bleach
Reported by mozilla · Published February 16, 2023
bleach is fixed in 79b7a3c5e56a09d1d323a5006afa59b56162eb13 and 3.3.0 (PyPI)
A mutation XSS affects users calling bleach.clean with all of: svg or math in the allowed tags p or br in allowed tags style, title, noscript, script, textarea, noframes, iframe, or xmp in allowed tags the keyword argument strip_comments=False Note: none of the above tags are in the default allowed tags and strip_comments defaults to True.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bleach | PyPI | 79b7a3c5e56a09d1d323a5006afa59b56162eb13, 3.3.0 |
| py3-bleach | Alpine | 3.3.0-r0 |
| bleach | mozilla | 3.3.0 |
| Mozilla Bleach | Mozilla | 3.3.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Mozilla | Mozilla Bleach | unspecified |
| alpine | py3-bleach | 0 |
| PyPI | bleach | |
| Mozilla | Mozilla Bleach | * |
Timeline
- Feb 2, 2021 CVE Published
- Jan 5, 2022 CVE Updated
- Feb 17, 2023 EPSS Score (30 in total, the first dated here)
- Feb 17, 2023 PoC Published
- Mar 9, 2026 Security Advisory (3 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23980
vulnetix vdb fixes CVE-2021-23980
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/CVE-2021-23980/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart