Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23980
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:40 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23980
Complete source record
{
"id": "918d1a03fec5775579036329362e8e0fdb85e3ee572ec67c6b5d3f9fbf29d50f",
"url": "https://osv.dev/vulnerability/CVE-2021-23980",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23980",
"summary": "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.",
"evidence": "osv:CVE-2021-23980",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-23980",
"aliases": [
"CVE-2021-23980",
"GHSA-vv2x-vrpj-qqpq",
"PYSEC-2021-865"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mozilla/bleach",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "79b7a3c5e56a09d1d323a5006afa59b56162eb13"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mozilla:bleach:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.2.3",
"v3.2.2",
"v3.2.1",
"v3.2.0",
"v3.1.5",
"v3.1.4",
"v3.1.3",
"v3.1.0",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v2.1.4",
"v2.1.3",
"v2.1.2",
"v2.1.1",
"v2.1",
"v2.0",
"v1.5",
"v1.4.2",
"v1.4.1",
"v1.4",
"v1.2.2",
"v1.2.1",
"v1.1.1",
"v1.1.0",
"v1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0",
"1.0.0rc2",
"0.5.0",
"1.0.0rc",
"0.4.0",
"0.3.5",
"0.3.4",
"0.3.3",
"0.3.2",
"0.3.1",
"0.3.0",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23980.json"
}
}
],
"modified": "2026-10-20T10:54:32.586930689Z",
"provider": "osv",
"references": [
"https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq",
"https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23980",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385533,
"published_at": "2023-02-16T22:15:10.713+00:00"
}