Cross-site scripting in Bleach - CVE-2021-23980

 

Cross-site scripting in Bleach - CVE-2021-23980

Published: August 2, 2021


Vulnerability identifier: #VU55500
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2021-23980
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Bleach
Debian Linux
Fedora
Ubuntu
openEuler
Ansible Automation Platform
python-galaxy-importer (Red Hat package)
python-pulp-ansible (Red Hat package)
python-bleach-allowlist (Red Hat package)
python-bleach (Ubuntu package)
python-bleach (Debian package)
python-bleach
python-bleach (Red Hat package)
python-galaxy-ng (Red Hat package)
automation-hub (Red Hat package)
python-bleach-help
python3-bleach

How to mitigate CVE-2021-23980

Install updates from vendor's website.

Bleach - update to 3.3.0
python-galaxy-importer (Red Hat package) - addressed in versions 0.2.15-1.el7pc, 0.2.15-1.el8pc
python-pulp-ansible (Red Hat package) - addressed in versions 0.5.6-1.el7pc, 0.5.6-1.el8pc
python-bleach-allowlist (Red Hat package) - addressed in versions 1.0.3-1.el7pc, 1.0.3-1.el8pc
python-bleach (Ubuntu package) - addressed in versions 1.4.2-1ubuntu0.1~esm1, 2.1.2-1ubuntu0.1~esm1, 3.1.1-1ubuntu0.1~esm1
python-bleach (Debian package) - update to 3.1.2-0+deb10u2
python-bleach - update to 3.3.0-1.el8
python-bleach (Red Hat package) - addressed in versions 3.3.0-1.el7pc, 3.3.0-1.el8pc
python-galaxy-ng (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
automation-hub (Red Hat package) - addressed in versions 4.2.2-1.el7pc, 4.2.2-1.el8pc
python-bleach - update to 5.0.1-1
python-bleach-help - update to 5.0.1-1
python3-bleach - update to 5.0.1-1

External References

Related Security Bulletins