Moderate severityNVD Advisory· Published Feb 16, 2023· Updated Mar 19, 2025
CVE-2021-23980
CVE-2021-23980
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
bleachPyPI | < 3.3.0 | 3.3.0 |
Affected products
5- ghsa-coords4 versionspkg:pypi/bleachpkg:rpm/opensuse/python-bleach&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/python-bleach&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-bleach&distro=SUSE%20Package%20Hub%2015%20SP2
< 3.3.0+ 3 more
- (no CPE)range: < 3.3.0
- (no CPE)range: < 3.1.5-lp152.2.3.1
- (no CPE)range: < 6.1.0-1.5
- (no CPE)range: < 3.1.5-bp152.2.4.1
- Mozilla/Mozilla Bleachv5Range: unspecified
Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
11- github.com/advisories/GHSA-vv2x-vrpj-qqpqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23980ghsaADVISORY
- advisory.checkmarx.net/advisory/CX-2021-4303ghsaWEB
- bugzilla.mozilla.org/show_bug.cgighsaWEB
- bugzilla.mozilla.org/show_bug.cgighsaWEB
- cure53.de/fp170.pdfghsaWEB
- github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGESghsaWEB
- github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13ghsaWEB
- github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpqghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2021-865.yamlghsaWEB
- pypi.org/project/bleachghsaWEB
News mentions
0No linked articles in our index yet.