-
Notifications
You must be signed in to change notification settings - Fork 80
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
[CVE RISK] Upgrade urllib3 to v1.26.5 #378
Comments
From my understanding, setup.py in the opensearch-benchmark branches installs opensearch-py (different versions) which have "urllib3>=1.21.1" in Should I add "urllib3>=1.26.5" in |
As I see it opensearch-py requires urllib3 and downloads it, @AkshathRaghav, I think doing either would work. I think adding urllib3>=1.26.5 on setup.py (depending on how it's installed) should then update it to >1.26.5. Although I think adding it in OpenSearch-py would be the better option. |
@AkshathRaghav Either would work as @maddox05 mentioned. Feel free to make a PR request to https://github.com/opensearch-project/opensearch-py/blob/main/setup.py#L53 If they provide a reason why they cannot, we can opt to add |
@IanHoang will do, I'll keep you updated here. nvm @AkshathRaghav got it 👏 |
Pull request to the main branch - opensearch-project/opensearch-py#515 Waiting for the checks to pass before I do the PRs for the other version branches in opensearch-py (which branch 1 and 1.1 here depend on) |
@AkshathRaghav possibly hardcoding it in
|
Sure that'd be easier tbh. But when setting it up, it'd install twice. Both methods are low effort so no worries! |
it should be installed through opensearch library with the first command, and then if its already installed it should just skip it. it just acts as a backup in case opensearch-py library installed the wrong ver of urllib3. |
If the main opensearch-py setup has a dependency as 1.26.5, it can't install the wrong version; their setup.py will only install it if the module wasn't existing. |
that is what I meant yes sorry for the confusion. |
Why not bump the opensearch-py version once #378 happens? Edit, I meant opensearch-project/opensearch-py#518 |
@wbeckler our setup.py's Note: opensearch-project/opensearch-py#518 has been merged in |
opensearch-py is considering releasing version 2.3.2 with the urllib3 v1.26.9 incorporated. After that's been released, @AkshathRaghav or @maddox05 can open a PR to change the opensearch-py version from 2.2.0 to 2.3.2 |
Will do @IanHoang 👍 |
The Issue
An issue was discovered in urllib3, when provided with a URL containing many @ characters in the authority component, the authority regular expression exhibits catastrophic backtracking, causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.
An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the authority component, the authority regular expression exhibits catastrophic backtracking, causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.
How to Fix
The following branches contain urllib3 v1.25.11 and need to be upgraded to v1.26.5 or later.
The text was updated successfully, but these errors were encountered: