CVE-2021-23980
Aliases:GHSA-vv2x-vrpj-qqpqPYSEC-2021-865
Advisory lineage Upstream: 0 Downstream: 10
Modified
Published: 16 Feb 2023, 00:00
Last modified:19 Mar 2025, 15:18
Vulnerability Summary
Overall Risk (default)
medium
34/100 CVSS Score
6.1 MEDIUM
v3.1 (cve.org)
EPSS Score
0.49% LOW
0% probability +0.09%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected
Timeline
16 Feb 2023, 00:00
Published
Vulnerability first disclosed
19 Mar 2025, 15:18
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v4.0•MEDIUM•Score: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 0.49%• Percentile: 66%
Techniques & Countermeasures
- CWE-79•Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected Systems
- mozilla•bleach
< 3.3.0
- mozilla•mozilla bleach
≥ unspecified, < 3.3.0
- PyPI•bleach
< 79b7a3c5e56a09d1d323a5006afa59b56162eb13 | < 3.3.0
References (12)
- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq
- https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980
- https://nvd.nist.gov/vuln/detail/CVE-2021-23980
- https://github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13
- https://advisory.checkmarx.net/advisory/CX-2021-4303
- https://bugzilla.mozilla.org/show_bug.cgi?id=1689399
- https://cure53.de/fp170.pdf
- https://github.com/mozilla/bleach
- https://github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGES#L4
- https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2021-865.yaml
- https://pypi.org/project/bleach
- ttps://bugzilla.mozilla.org/show_bug.cgi?id=1689399