Ubuntu CVE Tracker
UBUNTU-CVE-2021-23980
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | python-bleach | All versions before 1.4.2-1ubuntu0.1~esm1 (fixed in 1.4.2-1ubuntu0.1~esm1) |
| Ubuntu:Pro:18.04:LTS | python-bleach | All versions before 2.1.2-1ubuntu0.1~esm1 (fixed in 2.1.2-1ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | python-bleach | All versions before 3.1.1-1ubuntu0.1~esm1 (fixed in 3.1.1-1ubuntu0.1~esm1) |
References
- https://ubuntu.com/security/CVE-2021-23980
- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq
- https://bugzilla.mozilla.org/show_bug.cgi?id=1689399
- https://github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13
- https://github.com/mozilla/bleach/commit/d398c89e54ced6b1039d3677689707456ba42dec
- https://www.cve.org/CVERecord?id=CVE-2021-23980
- https://ubuntu.com/security/notices/USN-8077-1