You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Bleach vulnerable to mutation XSS via whitelisted math or svg and raw tag
Moderate severity
GitHub Reviewed
Published
Mar 17, 2020
in
mozilla/bleach
•
Updated Sep 12, 2024
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Learn more on MITRE.
Impact
A mutation XSS affects users calling
bleach.cleanwith all of:svgormathin the allowed/whitelisted tagsstrip=FalsePatches
Users are encouraged to upgrade to bleach v3.1.2 or greater.
Workarounds
bleach.cleancalls to usestrip=True, or not whitelistmathorsvgtags and one or more of the following 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:
References