Live threats

All CVEs / Mozilla

CVE-2021-23980Mozilla Bleach

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Bleach.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mozillableach< 3.3.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.