Vulnerabilities · 2021 · Mozilla
CVE-2021-23980
Mozilla Bleach vulnerability
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 products
Bleach. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mozilla Bleach runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq · Vendor Advisory
- bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980 · Exploit
- github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13
- bugzilla.mozilla.org/show_bug.cgi?id=1689399
- cure53.de/fp170.pdf
- github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGES#L4
- nvd.nist.gov/vuln/detail/CVE-2021-23980
- advisory.checkmarx.net/advisory/CX-2021-4303
- nvd.nist.gov/vuln/detail/CVE-2021-23980
- cve.org/CVERecord?id=CVE-2021-23980
More vulnerabilities in Mozilla products
CVE-2026-24869CVE-2026-24868CVE-2026-0892CVE-2026-0891CVE-2026-0890CVE-2026-0889CVE-2026-0888CVE-2026-0887All 3,354
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.