This repository was archived by the owner on Jun 10, 2026. It is now read-only.
mutation XSS in bleach.clean when noscript and raw tag whitelisted
Package
bleach
(python)
Affected versions
<=3.1.0
Patched versions
3.1.1
Impact
A mutation XSS affects users calling
bleach.cleanwithnoscriptand a raw tag (see below) in the allowed/whitelisted tags option.Patches
v3.1.1
Workarounds
bleach.cleancalls to not whitelistnoscriptand one or more of the following raw tags:unsafe-inlineandunsafe-evalscript-srcs) will also help mitigate the risk.References
Credits
For more information
If you have any questions or comments about this advisory: