python-bleach: Mutation cross-site scripting in bleach.clean
Published Feb 16, 2023
6.9
MEDIUMCVSS 4.0
EPSS 0.48%
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
-
- Version unspecifiedStatusaffectedConstraints<3.3.0
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Mozilla | Mozilla Bleach | n/a |
|
No data.
Red Hat Automation Hub 4.2 for RHEL 7
automation-hub-0:4.2.2-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python-bleach-0:3.3.0-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python-bleach-allowlist-0:1.0.3-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python-galaxy-importer-0:0.2.15-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python-galaxy-ng-0:4.2.2-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python-pulp-ansible-1:0.5.6-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 7
python3-django-0:2.2.18-1.el7pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
automation-hub-0:4.2.2-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python-bleach-0:3.3.0-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python-bleach-allowlist-0:1.0.3-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python-galaxy-importer-0:0.2.15-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python-galaxy-ng-0:4.2.2-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python-pulp-ansible-1:0.5.6-1.el8pc
Fixed · RHSA-2021:0781
Red Hat Automation Hub 4.2 for RHEL 8
python3-django-0:2.2.18-1.el8pc
Fixed · RHSA-2021:0781
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Automation Hub 4.2 for RHEL 7 | automation-hub-0:4.2.2-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-bleach-0:3.3.0-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-bleach-allowlist-0:1.0.3-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-galaxy-importer-0:0.2.15-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-galaxy-ng-0:4.2.2-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python-pulp-ansible-1:0.5.6-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 7 | python3-django-0:2.2.18-1.el7pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | automation-hub-0:4.2.2-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-bleach-0:3.3.0-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-bleach-allowlist-0:1.0.3-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-galaxy-importer-0:0.2.15-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-galaxy-ng-0:4.2.2-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python-pulp-ansible-1:0.5.6-1.el8pc | Fixed | RHSA-2021:0781 |
| Red Hat Automation Hub 4.2 for RHEL 8 | python3-django-0:2.2.18-1.el8pc | Fixed | RHSA-2021:0781 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (14)
- https://access.redhat.com/security/cve/CVE-2021-23980 Vendor Advisory
- https://advisory.checkmarx.net/advisory/CX-2021-4303
- https://bugzilla.mozilla.org/show_bug.cgi?id=1689399
- https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980 ExploitIssue Tracking
- https://bugzilla.redhat.com/show_bug.cgi?id=1925252 Issue Tracking
- https://cure53.de/fp170.pdf
- https://github.com/advisories/GHSA-vv2x-vrpj-qqpq Advisory
- https://github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGES#L4
- https://github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13
- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq Vendor Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2021-865.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2021-23980
- https://pypi.org/project/bleach
- https://www.cve.org/CVERecord?id=CVE-2021-23980
Change history (0)
No recorded changes yet.