CVE-2021-23980

published 16 Feb 2023 · updated 18 Feb 2026

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.

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Bleach 3.3.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MozillaBleach<3.3.03.3.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Mozilla, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-23980 severity on Zeptric[![CVE-2021-23980](https://zeptric.io/badge/cve/CVE-2021-23980.svg)](https://zeptric.io/cve/CVE-2021-23980)