{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-23980","id":"CVE-2021-23980","title":"Cross-site scripting in Bleach","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.","descriptionLong":"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.","published":"2023-02-16T00:00:00.000Z","updated":"2026-10-20T10:54:32.586930689Z","reserved":"2021-01-13T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mozilla","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Mozilla Bleach"],"affectedProducts":[{"vendor":"Mozilla","product":"Mozilla Bleach","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"3.3.0","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"bleach","purl":"pkg:pypi/bleach","ranges":["<3.3.0"],"fixed":["3.3.0"],"advisory":"GHSA-vv2x-vrpj-qqpq"}],"cwes":["CWE-79"],"aliases":["GHSA-vv2x-vrpj-qqpq","PYSEC-2021-865"],"references":[{"url":"https://github.com/mozilla/bleach/security/advisories/GHSA-vv2x-vrpj-qqpq","tags":["x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=CVE-2021-23980","tags":["x_transferred","Exploit","Issue Tracking","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23980","tags":["advisory"]},{"url":"https://github.com/mozilla/bleach/commit/79b7a3c5e56a09d1d323a5006afa59b56162eb13","tags":["web","fix"]},{"url":"https://advisory.checkmarx.net/advisory/CX-2021-4303","tags":["web","advisory"]},{"url":"https://bugzilla.mozilla.org/show_bug.cgi?id=1689399","tags":["web"]},{"url":"https://cure53.de/fp170.pdf","tags":["web"]},{"url":"https://github.com/mozilla/bleach","tags":["package"]},{"url":"https://github.com/mozilla/bleach/blob/79b7a3c5e56a09d1d323a5006afa59b56162eb13/CHANGES#L4","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/bleach/PYSEC-2021-865.yaml","tags":["web"]},{"url":"https://pypi.org/project/bleach","tags":["web"]},{"url":"ttps://bugzilla.mozilla.org/show_bug.cgi?id=1689399","tags":["report"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00483,"epssPercentile":0.4229,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-23980","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23980","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-23980","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vv2x-vrpj-qqpq","ok":true,"note":"GHSA-vv2x-vrpj-qqpq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-23980","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}