CVE-2021-23980: Cross-site scripting in Bleach

CVE-2021-23980 · Severity: low · CVSS 3.1 · Published 2021-02-02

In Mozilla Bleach before 3.3.0, a mutation XSS affects users calling bleach.clean with math or svg; p or br; and style, title, noscript, script, textarea, noframes, iframe, or xmp tags with strip_comments=False.

Technologies: bleach (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2021-23980 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-23980 being exploited in the wild.
How severe is CVE-2021-23980?
Low severity, with a CVSS score of 3.1, published 2 February 2021.
Which products and versions are affected?
bleach (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.0, GIT:introduced=0,fixed=79b7a3c5e56a09d1d323a5006afa59b56162eb13|ECOSYSTEM:introduced=0,fixed=3.3.0.
Is there a fix for CVE-2021-23980?
Yes. bleach (PyPI): upgrade to 3.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2021-23980?
Check whether you run bleach (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • bleach (PyPI): upgrade to 3.3.0 or later
    pip install "bleach>=3.3.0"

Affected products

  • bleach (PyPI) ECOSYSTEM:introduced=0,fixed=3.3.0, GIT:introduced=0,fixed=79b7a3c5e56a09d1d323a5006afa59b56162eb13|ECOSYSTEM:introduced=0,fixed=3.3.0

Identifiers

  • CVE-2021-23980
  • GHSA-vv2x-vrpj-qqpq
  • PYSEC-2021-865

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.