Vulnerability · Published Feb 16, 2023 · Assigned by mozilla
CVE-2021-23980
Medium 6.1
In plain English
A medium-severity cross-site scripting in Mozilla Bleach from Mozilla. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-bleach | 3.3.0-r0 | ALPINE-CVE-2021-23980 |
| Alpine:v3.21 | py3-bleach | 3.3.0-r0 | ALPINE-CVE-2021-23980 |
| Alpine:v3.22 | py3-bleach | 3.3.0-r0 | ALPINE-CVE-2021-23980 |
| Alpine:v3.23 | py3-bleach | 3.3.0-r0 | ALPINE-CVE-2021-23980 |
| Alpine:v3.24 | py3-bleach | 3.3.0-r0 | ALPINE-CVE-2021-23980 |
| Debian:12 | python-bleach | 3.2.1-2.1 | DEBIAN-CVE-2021-23980 |
| Debian:13 | python-bleach | 3.2.1-2.1 | DEBIAN-CVE-2021-23980 |
| Debian:14 | python-bleach | 3.2.1-2.1 | DEBIAN-CVE-2021-23980 |
| PyPI | bleach | 3.3.0 | PYSEC-2021-865 |
| PyPI | bleach | 3.3.0 | GHSA-vv2x-vrpj-qqpq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Mozilla | Mozilla Bleach | unspecified – before 3.3.0 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N