CVE-2021-23980
MEDIUM 6.1CVSS 3.1Cross-site scripting in Bleach
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.
- Published
- 16 Feb 2023
- Last modified
- 8 Jul 2026
- Assigned by
- security@mozilla.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-vv2x-vrpj-qqpqPYSEC-2021-865
- Sources
- NVDJSONOSV GHSA-vv2x-vrpj-qqpqJSONOSV PYSEC-2021-865JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mozilla | bleachcpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:* |
< 3.3.0 | 3.3.0 |
| OSV | PyPI | bleach | < 3.3.0 | 3.3.0 |
References
- https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980 · Exploit, Issue Tracking, WEB
- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-23980 · ADVISORY
- https://github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13 · WEB, FIX
- https://advisory.checkmarx.net/advisory/CX-2021-4303 · WEB, ADVISORY
- https://bugzilla.mozilla.org/show_bug.cgi?id=1689399 · WEB
- https://cure53.de/fp170.pdf · WEB
- https://github.com/mozilla/bleach · PACKAGE
- https://github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGES#L4 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2021-865.yaml · WEB
- https://pypi.org/project/bleach · WEB
- ttps://bugzilla.mozilla.org/show_bug.cgi?id=1689399 · REPORT
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 16 Feb 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Feb 2021)