-
Notifications
You must be signed in to change notification settings - Fork 251
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
bug: using OpenSUSE and Fedora packages which change the Bleach code, parse_shim tests fail with Python 3.10.12 #707
Comments
This issue is not specific to Python 3.10, the mentioned CVE fix was included in all Pythons since Python 3.7. |
First off, if you think there's a security vulnerability in Bleach, please use our security vulnerability disclosure process.
I believe CVE-2023-24329 doesn't apply to Bleach because Bleach already drops space and control characters before running the url through Lines 475 to 507 in 13d6c0c
Bleach vendors It's possible we could update the |
I installed Python 3.10.12 and I can't reproduce this issue--the tests all pass for me. Also, I'm a little surprised this is a problem since Bleach vendors it's parse implementation and the tests that are failing are testing the vendored parse implementation which didn't change. @MeggyCal Can you give me steps to reproduce the test failures you're seeing? |
I can't speak for @MeggyCal, but in Fedora, we use the Python's standard library Since |
We take similar approach in (open)SUSE like the one described in #707 (comment). Thanks, @befeleme ! |
Given that, I'm inferring the steps to reproduce are something like this:
Given that, this is not an upstream problem. We explicitly vendored parse for specific reasons and now the tests fail for those specific packages. That's outside the scope of my responsibility and it's not something I'm going to support. You should file bugs with the relevant packages to patch the tests. Thank you! |
From Python 310 WhatsNew:
gh-102153: urllib.parse.urlsplit() now strips leading C0 control and space characters following the specification for URLs defined by WHATWG in response to CVE-2023-24329. Patch by Illia Volochii.
therefore some tests fail:
I already made a PR: #706, but copying it here so it could be discussed.
The text was updated successfully, but these errors were encountered: