CVE catalog

CVE-2021-23980

python-bleach: CVE-2021-23980

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.48% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-bleachsid6.3.0-1fixed
Debianpython-bleachforky6.3.0-1fixed
Debianpython-bleachtrixie6.2.0-1fixed
Debianpython-bleachbookworm5.0.1-2fixed
Ubuntupython-bleachpro3.1.0-1vulnerable
Ubuntupython-bleachpro3.1.0-2vulnerable
Ubuntupython-bleachpro3.1.1-1vulnerable
Ubuntupython-bleachpro3.1.1-1ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-bleachsourcesid3.2.1-2.1not yet assignedNot reported[986251]
Debianpython-bleachsourceforky3.2.1-2.1not yet assignedNot reported[986251]
Debianpython-bleachsourcetrixie3.2.1-2.1not yet assignedNot reported[986251]
Debianpython-bleachsourcebookworm3.2.1-2.1not yet assignedNot reported[986251]
Ubuntupython-bleachdebpro3.1.1-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2021-23980Not reported

[Debian bug #986251]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-bleach]

    Details (2)
    • 5.0.1-2 · all · bookworm

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12

    • 5.0.1-2 · all · bookworm

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12

  • Source package: [python-bleach]

    Details (2)
    • 5.0.1-2 · all · bookworm

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12

    • 5.0.1-2 · all · bookworm

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · bookworm; dsa · python-bleach · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-bleach]

    Details (2)
    • 6.2.0-1 · all · trixie

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · 13

    • 6.2.0-1 · all · trixie

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · 13

  • Source package: [python-bleach]

    Details (2)
    • 6.2.0-1 · all · trixie

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · 13

    • 6.2.0-1 · all · trixie

      Fixed · Fixed: 3.2.1-2.1

      dsa · python-bleach · debian · 13

Observed:

References