CVE-2021-23980
python-bleach - security update
6.1
MEDIUM
CVSS 3.1
EPSS 0.49%
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.
How to fix CVE-2021-23980
To remediate CVE-2021-23980, upgrade the affected package to a fixed version below.
- —upgrade to 3.2.1-2.1 or later
- —upgrade to 2.0-1+deb9u1 or later
- —upgrade to 3.1.2-0+deb10u2 or later
- —upgrade to 3.3.0 or later
- —upgrade to 79b7a3c5e56a09d1d323a5006afa59b56162eb13 or later
Is CVE-2021-23980 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 3.2.1-2.1
- from 0, < 2.0-1+deb9u1
- from 0, < 3.1.2-0+deb10u2
- from 0, < 3.3.0
- from 0, < 79b7a3c5e56a09d1d323a5006afa59b56162eb13 | from 0, < 3.3.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |