CVE-2021-23980Mozilla Bleach
Medium 6.1 No auth needed
Follow: this CVE · Mozilla · Mozilla Bleach We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 44
- Auth required
- No
- Published
- Feb 16, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Bleach.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | bleach |
< 3.3.0 |
3.3.0 |
pip install "bleach>=3.3.0" |
| PyPI | bleach |
< 3.3.0 |
3.3.0 |
pip install "bleach>=3.3.0" |
Per OSV / GitHub Advisories (GHSA-vv2x-vrpj-qqpq, PYSEC-2021-865). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mozilla | bleach | < 3.3.0 |
Official advisories
- python313-bleach-6.4.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11323-1 · Jul 21, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.mozilla.org Exploit Issue Tracking
- github.com Vendor Advisory