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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.5%top 58.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-bleach3.3.0-r0ALPINE-CVE-2021-23980
Alpine:v3.21py3-bleach3.3.0-r0ALPINE-CVE-2021-23980
Alpine:v3.22py3-bleach3.3.0-r0ALPINE-CVE-2021-23980
Alpine:v3.23py3-bleach3.3.0-r0ALPINE-CVE-2021-23980
Alpine:v3.24py3-bleach3.3.0-r0ALPINE-CVE-2021-23980
Debian:12python-bleach3.2.1-2.1DEBIAN-CVE-2021-23980
Debian:13python-bleach3.2.1-2.1DEBIAN-CVE-2021-23980
Debian:14python-bleach3.2.1-2.1DEBIAN-CVE-2021-23980
PyPIbleach3.3.0PYSEC-2021-865
PyPIbleach3.3.0GHSA-vv2x-vrpj-qqpq

Affected products (as reported)

VendorProductVersions
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

References