| title | Upgrading to DefectDojo Version 2.57.x |
|---|---|
| toc_hide | true |
| weight | -20260302 |
| description | HTML sanitization library replaced (bleach → nh3). |
Check the Release Notes for the contents of the release.
The bleach library has been replaced by nh3 for HTML sanitization. This is a drop-in replacement in most cases, but there are two minor behavioral changes to be aware of:
styleattributes are no longer allowed.bleachsupported CSS property-level filtering (e.g. allowing onlycolororfont-weight).nh3has no equivalent, sostyleattributes are stripped entirely to avoid allowing arbitrary CSS injection. Content that previously relied on inline styles (e.g. colored text in the login banner, background-color on markdown images) will lose that styling.- Disallowed tags are stripped rather than escaped. Previously, a tag like
<script>would be rendered as the literal text<script>. Now the tag is removed entirely and only its text content is kept. This is the correct behavior for a sanitizer.