Python Bleach XSS via bleach.clean with svg/math tags
CVE-2021-23980 Published on February 16, 2023

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.

Github Repository NVD

Vulnerability Analysis

CVE-2021-23980 is exploitable with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2021-23980. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is a XSS Vulnerability?

The software 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.

CVE-2021-23980 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2021-23980

stack.watch emails you whenever new vulnerabilities are published in Mozilla Bleach or Canonical Ubuntu Linux. Just hit a watch button to start following.

 
 

Affected Versions

Mozilla Bleach:

Vulnerable Packages

The following package name and versions may be associated with CVE-2021-23980

Package Manager Vulnerable Package Versions Fixed In
pip bleach < 3.3.0 3.3.0

Exploit Probability

EPSS
0.46%
Percentile
63.51%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.