Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bleach is deprecated #7177

Open
suspectpart opened this issue Dec 11, 2024 · 1 comment
Open

Bleach is deprecated #7177

suspectpart opened this issue Dec 11, 2024 · 1 comment

Comments

@suspectpart
Copy link

suspectpart commented Dec 11, 2024

When checking for whether issue #5967 is resolved yet, I stumbled across this code:

html_content = bleach.clean(html_content, markdown_tags, markdown_attrs)

We also used bleach on an internal project, unfortunately it is being deprecated (mozilla/bleach#698), stating:

Bleach sits on top of--and heavily relies on--html5lib which is no longer in active development. It is increasingly difficult to maintain Bleach in that context and I think it's nuts to build a security library on top of a library that's not in active development.

It seems like the maintainer of bleach still tries to keep up with patching security issues, but the whole foundation is unmaintained and seems a security risk; is there any plan on your side to replace that dependency with something more actively maintained? In the discussion of the deprecation ticket there seem to be some ideas of other libraries that could handle sanitizing HTML...

@freeplant
Copy link
Member

Thanks for reporting the issue. We will give it a check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants