CVE-2021-23980

python-bleach: Mutation cross-site scripting in bleach.clean

Published Feb 16, 2023 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2620-1 python-bleach security update
Debian DSA Debian DSA DSA-4892-1 python-bleach security update
EUVD EUVD EUVD-2021-0036 Cross-site scripting in Bleach
Github GHSA Github GHSA GHSA-vv2x-vrpj-qqpq Cross-site scripting in Bleach
Ubuntu USN Ubuntu USN USN-8077-1 Bleach vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mozilla
Published
Updated
Mar 19, 2025, 3:18 PM
Reserved
Jan 13, 2021, 12:00 AM
Status
Modified
Published
Feb 16, 2023, 10:15 PM
Modified
Jun 17, 2026, 3:39 AM
Severity
Moderate
Public date
Feb 2, 2021, 12:00 AM