VDB

CVE-2021-23980

CVE-2021-23980 PUBLISHED CVSS 6.1 MEDIUM

Cross-site scripting in Bleach

Reported by mozilla · Published February 16, 2023

bleach is fixed in 79b7a3c5e56a09d1d323a5006afa59b56162eb13 and 3.3.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
bleachPyPI79b7a3c5e56a09d1d323a5006afa59b56162eb13, 3.3.0
py3-bleachAlpine3.3.0-r0
bleachmozilla3.3.0
Mozilla BleachMozilla3.3.0

Risk scores

CVSS 3.1
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
MozillaMozilla Bleachunspecified
alpinepy3-bleach0
PyPIbleach
MozillaMozilla Bleach*

Timeline

  • Feb 2, 2021 CVE Published
  • Jan 5, 2022 CVE Updated
  • Feb 17, 2023 EPSS Score (30 in total, the first dated here)
  • Feb 17, 2023 PoC Published
  • Mar 9, 2026 Security Advisory (3 in total, the first dated here)
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-23980
vulnetix vdb fixes CVE-2021-23980

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23980/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›