ADVISORIES

Vulnerability

CVE-2021-23980

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.

15 advisories report this vulnerability, across 8 ecosystems.

Advisories in PyPI

  • GHSA-vv2x-vrpj-qqpq

    Cross-site scripting in Bleach

    Moderate CVE-2021-23980 PyPI Updated 8 July 2026
  • PYSEC-2021-865

    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.

    CVE-2021-23980 PyPI Updated 8 November 2023

References