Skip to content
OpenAdvisories
Medium · 6.1 CVE-2020-6816 EUVD-2020-0055GHSA-m6xf-fq7q-8743PYSEC-2020-28

Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag

Published Mar 24, 2020 · Updated Aug 4, 2024 · Assigned by mozilla

Description

In Mozilla Bleach before 3.12, a mutation XSS in bleach.clean when RCDATA and either svg or math tags are whitelisted and the keyword argument strip=False.

Affected products

VendorProductAffectedFixed
— Mozilla Bleach <=3.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-bleach 3.1.3-1 —
Debian 13 python-bleach 3.1.3-1 —
Debian 12 python-bleach 3.1.3-1 —
Debian 10 python-bleach 3.1.2-0+deb10u1 DSA-4643-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-bleach 3.1.1-1ubuntu0.1~esm1 —
Ubuntu Pro 18.04 LTS python-bleach 2.1.2-1ubuntu0.1~esm1 —
Ubuntu Pro 16.04 LTS python-bleach 1.4.2-1ubuntu0.1~esm1 —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP2 python-bleach 3.1.5-bp152.2.4.1 openSUSE-SU-2021:0571-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-bleach 6.1.0-1.5 openSUSE-SU-2026:11323-1, openSUSE-SU-2024:14134-1
openSUSE Leap 15.2 python-bleach 3.1.5-lp152.2.3.1 openSUSE-SU-2021:0552-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-bleach 3.1.2-r0 —
Alpine v3.23 py3-bleach 3.1.2-r0 —
Alpine v3.22 py3-bleach 3.1.2-r0 —
Alpine v3.21 py3-bleach 3.1.2-r0 —
Alpine v3.20 py3-bleach 3.1.2-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-bleach 3.1.2-r0 —
Alpine v3.18 py3-bleach 3.1.2-r0 —
Alpine v3.17 py3-bleach 3.1.2-r0 —
Alpine v3.16 py3-bleach 3.1.2-r0 —
Alpine v3.15 py3-bleach 3.1.2-r0 —
Alpine v3.14 py3-bleach 3.1.2-r0 —
Alpine v3.13 py3-bleach 3.1.2-r0 —
Alpine v3.12 py3-bleach 3.1.2-r0 —
Alpine v3.11 py3-bleach 3.1.2-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI bleach < 3.1.2 3.1.2 GHSA-m6xf-fq7q-8743

Advisories 5

References