CVE-2021-23980
published medium CVSS 3.1 · 6.1python-bleach: Mutation cross-site scripting in bleach.clean
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Mozilla | — | Mozilla Bleachunspecified to < 3.3.0 | Affected | Not stated | mozilla |
| Alpine Linux | edge | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Debian | buster | python-bleach | Advisory build | 3.1.2-0+deb10u2 | DSA-4892-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | python2-bleachnoarch | Advisory build | 3.1.5-lp152.2.3.1 | OPENSUSE-SU-2021:0552-1 |
| Ubuntu | bionic | python-bleach | Advisory build | 2.1.2-1ubuntu0.1~esm1 | USN-8077-1 |
| Alpine Linux | v3.15 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.16 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
Show 46 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-bleach | Fixed | 3.3.0-r0 | Package fix record |
| Debian | stretch | python-bleach | Advisory build | 2.0-1+deb9u1 | DLA-2620-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | python3-bleachnoarch | Advisory build | 3.1.5-lp152.2.3.1 | OPENSUSE-SU-2021:0552-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-bleachaarch64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-bleachppc64le | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-bleachs390x | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-bleachx86_64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-bleachaarch64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-bleachppc64le | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-bleachs390x | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-bleachx86_64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-bleachaarch64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-bleachppc64le | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-bleachs390x | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-bleachx86_64 | Advisory build | 6.1.0-1.5 | OPENSUSE-SU-2024:14134-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-bleachaarch64 | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-bleachppc64le | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-bleachs390x | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-bleachx86_64 | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-bleachaarch64 | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-bleachppc64le | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-bleachs390x | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-bleachx86_64 | Advisory build | 6.4.0-1.1 | OPENSUSE-SU-2026:11323-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-bleachaarch64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-bleachppc64le | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-bleachs390x | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python36-bleachx86_64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-bleachaarch64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-bleachppc64le | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-bleachs390x | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-bleachx86_64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-bleachaarch64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-bleachppc64le | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-bleachs390x | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-bleachx86_64 | Advisory build | 3.3.0-1.4 | OPENSUSE-SU-2024:11219-1 |
| Ubuntu | bionic | python3-bleach | Advisory build | 2.1.2-1ubuntu0.1~esm1 | USN-8077-1 |
| Ubuntu | focal | python-bleach | Advisory build | 3.1.1-1ubuntu0.1~esm1 | USN-8077-1 |
| Ubuntu | focal | python3-bleach | Advisory build | 3.1.1-1ubuntu0.1~esm1 | USN-8077-1 |
| Ubuntu | xenial | python-bleach | Advisory build | 1.4.2-1ubuntu0.1~esm1 | USN-8077-1 |
| Ubuntu | xenial | python3-bleach | Advisory build | 1.4.2-1ubuntu0.1~esm1 | USN-8077-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Mozilla | Mozilla Bleach | unspecified to < 3.3.0 (affected · custom) | mozilla · cna |
Weaknesses
2- mutation XSS via allowed math or svg; p or br; and style, title, noscript, script, textarea, noframes, iframe, or xmp tags with strip_comments=False
- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
3mozilla · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0bc08cd68cdad5c6f0a364def0380dc393ab6c1b9b87cfdb5277e741d20d111f
- Ingested
- 23 Sep 2026, 07:52:58 UTC
- Source record
- Official CVE record