CVEBrief

Home / Mozilla / Mozilla Bleach / CVE-2021-23980

CVE-2021-23980: is it exploited, and which versions of Mozilla Bleach are affected and fixed?

CVE-2021-23980 is a cross-site scripting (XSS) vulnerability in Mozilla Bleach. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: bleach before 3.3.0 (GitHub advisory GHSA-vv2x-vrpj-qqpq). Fixed in 3.3.0 (GitHub advisory GHSA-vv2x-vrpj-qqpq). Severity: Medium (6.1, CVSS 3.1, from CISA-ADP).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 28, 2026, 20:16 UTC and NVD November 19, 2026, 07:41 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 10:38 UTC
Affected
bleach before 3.3.0
GitHub advisory GHSA-vv2x-vrpj-qqpq
Fixed in
3.3.0
GitHub advisory GHSA-vv2x-vrpj-qqpq
Severity
Medium 6.1
CVSS 3.1 from CISA-ADP
Exploit odds (EPSS)
0.49% in 30 days
higher than 44% of CVEs; FIRST, December 2, 2026

What is CVE-2021-23980?

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.

From the CVE record by mozilla, last updated March 19, 2025, 15:18 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
MozillaMozilla Bleachbefore 3.3.03.3.0

As the CVE record by mozilla states it, last updated March 19, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
PyPIbleach< 3.3.03.3.0GHSA-vv2x-vrpj-qqpq

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 20, 2025. Summary: Cross-site scripting in Bleach.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
mozillableachbefore 3.3.0application

NVD analysis (status Modified), last modified June 17, 2026, 03:39 UTC.

How severe is CVE-2021-23980?

ScoreVersionVectorSource
Medium 6.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCISA-ADP
Medium 6.1CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-23980 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, March 19, 2025)
EPSS
0.49% probability of exploitation activity in the next 30 days, percentile 43.6 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
January 13, 2021
Published
February 16, 2023, 00:00 UTC
CVE record updated
March 19, 2025, 15:18 UTC by mozilla
NVD
Modified, last modified June 17, 2026, 03:39 UTC
Last checked
CVE list November 28, 2026, 20:16 UTC; NVD November 19, 2026, 07:41 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Mozilla Bleach?

Every CVE in Mozilla Bleach

Questions about CVE-2021-23980

Is CVE-2021-23980 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 0.49% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Mozilla Bleach are affected by CVE-2021-23980?

bleach before 3.3.0, per the GitHub advisory GHSA-vv2x-vrpj-qqpq. The tables above give every range the sources list.

Which version fixes CVE-2021-23980?

3.3.0, per the GitHub advisory GHSA-vv2x-vrpj-qqpq. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-23980?

Medium (6.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.

Where is the official record of CVE-2021-23980?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.