
CVE catalog
CVE-2021-23980
python-bleach: CVE-2021-23980
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.48% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-bleach | sid | 6.3.0-1 | fixed |
| Debian | python-bleach | forky | 6.3.0-1 | fixed |
| Debian | python-bleach | trixie | 6.2.0-1 | fixed |
| Debian | python-bleach | bookworm | 5.0.1-2 | fixed |
| Ubuntu | python-bleach | pro | 3.1.0-1 | vulnerable |
| Ubuntu | python-bleach | pro | 3.1.0-2 | vulnerable |
| Ubuntu | python-bleach | pro | 3.1.1-1 | vulnerable |
| Ubuntu | python-bleach | pro | 3.1.1-1ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-bleach | source | sid | 3.2.1-2.1 | not yet assigned | Not reported | [986251] |
| Debian | python-bleach | source | forky | 3.2.1-2.1 | not yet assigned | Not reported | [986251] |
| Debian | python-bleach | source | trixie | 3.2.1-2.1 | not yet assigned | Not reported | [986251] |
| Debian | python-bleach | source | bookworm | 3.2.1-2.1 | not yet assigned | Not reported | [986251] |
| Ubuntu | python-bleach | deb | pro | 3.1.1-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-23980 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-bleach]Fixed
Source package: [python-bleach]
Details (2)
5.0.1-2· all · bookwormFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12
5.0.1-2· all · bookwormFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12
- [python-bleach-doc]Fixed
Source package: [python-bleach]
Details (2)
5.0.1-2· all · bookwormFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12
5.0.1-2· all · bookwormFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12
[Debian 13 (Trixie)]
- [python3-bleach]Fixed
Source package: [python-bleach]
Details (2)
6.2.0-1· all · trixieFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · 13
6.2.0-1· all · trixieFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · 13
- [python-bleach-doc]Fixed
Source package: [python-bleach]
Details (2)
6.2.0-1· all · trixieFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · 13
6.2.0-1· all · trixieFixed · Fixed:
3.2.1-2.1dsa · python-bleach · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2021_0552-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-23980]
- [https://osv.dev/vulnerability/DLA-2620-1]
- [https://osv.dev/vulnerability/DSA-4892-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-23980]
- [https://security-tracker.debian.org/tracker/CVE-2021-23980]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23980.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]