CVE-2021-23980
mediumpriority · track · 24EPSS 0.005 · 41 %ileEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedautomation-hub-0:4.2.2-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedautomation-hub-0:4.2.2-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-0:3.3.0-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-0:3.3.0-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-allowlist-0:1.0.3-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-bleach-allowlist-0:1.0.3-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-importer-0:0.2.15-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-importer-0:0.2.15-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-ng-0:4.2.2-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-galaxy-ng-0:4.2.2-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-pulp-ansible-1:0.5.6-1.el7pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython-pulp-ansible-1:0.5.6-1.el8pc.src as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-0:3.3.0-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-0:3.3.0-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-allowlist-0:1.0.3-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-bleach-allowlist-0:1.0.3-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-django-0:2.2.18-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-django-0:2.2.18-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-importer-0:0.2.15-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-importer-0:0.2.15-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-ng-0:4.2.2-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-galaxy-ng-0:4.2.2-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-pulp-ansible-1:0.5.6-1.el7pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 7redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781 - Fixedpython3-pulp-ansible-1:0.5.6-1.el8pc.noarch as a component of Red Hat Automation Hub 4.2 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
https://access.redhat.com/errata/RHSA-2021:0781
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (37)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- RHSA-2021:0781Red Hat Security Advisory: Red Hat Ansible Automation Platform 1.2.2 security and bug fix update2021-03-09csaf · redhat_csafUS
An update is now available for Red Hat Ansible Automation Platform 1.2.2. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.
- GHSA-vv2x-vrpj-qqpqCross-site scripting in Bleach2021-02-02ghsa · osvUS
### Impact A [mutation XSS](https://cure53.de/fp170.pdf) 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`. ### Patches Users are encouraged to upgrade to bleach v3.3.0 or greater. Note: bleach v3.3.0 introduces a breaking change to escape HTML comments by default. ### Workarounds * modify `bleach.clean` calls to at least one of: * not allow the `style`, `title`, `noscript`, `script`, `textarea`, `noframes`, `iframe`, or `xmp` tag * not allow `svg` or `math` tags * not allow `p` or `br` tags * set `strip_comments=True` * A strong [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) without `unsafe-inline` and `unsafe-eval` [`script-src`s](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)) will also help mitigate the risk. ### References * https://bugzilla.mozilla.org/show_bug.cgi?id=1689399 * https://advisory.checkmarx.net/advisory/CX-2021-4303 * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23980 * https://cure53.de/fp170.pdf ### Credits * Reported by [Yaniv Nizry](https://twitter.com/ynizry) from the CxSCA AppSec group at Checkmarx * Additional eject tags not mentioned in the original advisory and the CSP mitigation line being truncated in the revised advisory reported by [Michał Bentkowski](https://twitter.com/SecurityMB) at Securitum ### For more information If you have any questions or comments about this advisory: * Open an issue at [https://github.com/mozilla/bleach/issues](https://github.com/mozilla/bleach/issues) * Email us at [security@mozilla.org](mailto:security@mozilla.org)
- PYSEC-2021-8652021-02-02vendor · osvUS
In Mozilla Bleach before 3.3.0, a mutation XSS affects users calling bleach.clean with math or svg; p or br; and style, title, noscript, script, textarea, noframes, iframe, or xmp tags with strip_comments=False.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980cnnvd
- https://cxsecurity.com/cveshow/CVE-2021-23980/cnnvd
- https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpqcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-23980cnnvd
- https://vigilance.fr/vulnerability/Python-Bleach-Cross-Site-Scripting-35012cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.1157cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.1308cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021080213cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan