Skip to content

CVE-2021-23980 Cross-site scripting in Bleach

MediumCVSS 6.1 EPSS 0.48%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
pypi bleach(PyPI) < 3.3.0 3.3.0
pypi bleach(PyPI) = 0.1 No fix listed
pypi bleach(PyPI) = 0.1.1 No fix listed
pypi bleach(PyPI) = 0.1.2 No fix listed
pypi bleach(PyPI) = 0.2 No fix listed
pypi bleach(PyPI) = 0.2.1 No fix listed
pypi bleach(PyPI) = 0.2.2 No fix listed
pypi bleach(PyPI) = 0.3 No fix listed
pypi bleach(PyPI) = 0.3.1 No fix listed
pypi bleach(PyPI) = 0.3.3 No fix listed
pypi bleach(PyPI) = 0.3.4 No fix listed
pypi bleach(PyPI) = 0.5.0 No fix listed
pypi bleach(PyPI) = 0.5.1 No fix listed
pypi bleach(PyPI) = 1.0.0 No fix listed
pypi bleach(PyPI) = 1.0.1 No fix listed
pypi bleach(PyPI) = 1.0.2 No fix listed
pypi bleach(PyPI) = 1.0.3 No fix listed
pypi bleach(PyPI) = 1.0.4 No fix listed
pypi bleach(PyPI) = 1.1.0 No fix listed
pypi bleach(PyPI) = 1.1.1 No fix listed
pypi bleach(PyPI) = 1.1.2 No fix listed
pypi bleach(PyPI) = 1.1.3 No fix listed
pypi bleach(PyPI) = 1.1.4 No fix listed
pypi bleach(PyPI) = 1.1.5 No fix listed
pypi bleach(PyPI) = 1.2 No fix listed
Show 41 more
ProductAffected versionsFixed in
pypi bleach(PyPI) = 1.2.1 No fix listed
pypi bleach(PyPI) = 1.2.2 No fix listed
pypi bleach(PyPI) = 1.4 No fix listed
pypi bleach(PyPI) = 1.4.1 No fix listed
pypi bleach(PyPI) = 1.4.2 No fix listed
pypi bleach(PyPI) = 1.4.3 No fix listed
pypi bleach(PyPI) = 1.5.0 No fix listed
pypi bleach(PyPI) = 2.0.0 No fix listed
pypi bleach(PyPI) = 2.1 No fix listed
pypi bleach(PyPI) = 2.1.1 No fix listed
pypi bleach(PyPI) = 2.1.2 No fix listed
pypi bleach(PyPI) = 2.1.3 No fix listed
pypi bleach(PyPI) = 2.1.4 No fix listed
pypi bleach(PyPI) = 3.0.0 No fix listed
pypi bleach(PyPI) = 3.0.1 No fix listed
pypi bleach(PyPI) = 3.0.2 No fix listed
pypi bleach(PyPI) = 3.1.0 No fix listed
pypi bleach(PyPI) = 3.1.1 No fix listed
pypi bleach(PyPI) = 3.1.2 No fix listed
pypi bleach(PyPI) = 3.1.3 No fix listed
pypi bleach(PyPI) = 3.1.4 No fix listed
pypi bleach(PyPI) = 3.1.5 No fix listed
pypi bleach(PyPI) = 3.2.0 No fix listed
pypi bleach(PyPI) = 3.2.1 No fix listed
pypi bleach(PyPI) = 3.2.2 No fix listed
pypi bleach(PyPI) = 3.2.3 No fix listed
debian/python-bleach(Debian:12) < 3.2.1-2.1 3.2.1-2.1
debian/python-bleach(Debian:13) < 3.2.1-2.1 3.2.1-2.1
debian/python-bleach(Debian:14) < 3.2.1-2.1 3.2.1-2.1
mozilla bleach < 3.3.0 3.3.0
alpine/py3-bleach(Alpine:v3.15) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.16) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.17) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.18) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.19) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.20) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.21) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.22) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.23) < 3.3.0-r0 3.3.0-r0
alpine/py3-bleach(Alpine:v3.24) < 3.3.0-r0 3.3.0-r0
Mozilla Bleach < 3.3.0 3.3.0

References