From 97b2f0e257d41adf6018a44750c7670ed9ab24ca Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:47:09 +0200 Subject: [PATCH] chore(deps): update dependency requests to >=2.32.2,<2.33 [security] (#3032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [requests](https://requests.readthedocs.io) ([source](https://togithub.com/psf/requests), [changelog](https://togithub.com/psf/requests/blob/master/HISTORY.md)) | `>=2.31.0,<2.32` -> `>=2.32.2,<2.33` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/requests/2.32.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/requests/2.32.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/requests/2.31.0/2.32.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/requests/2.31.0/2.32.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2024-35195](https://togithub.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56) When making requests through a Requests `Session`, if the first request is made with `verify=False` to disable cert verification, all subsequent requests to the same origin will continue to ignore cert verification regardless of changes to the value of `verify`. This behavior will continue for the lifecycle of the connection in the connection pool. ### Remediation Any of these options can be used to remediate the current issue, we highly recommend upgrading as the preferred mitigation. * Upgrade to `requests>=2.32.0`. * For `requests<2.32.0`, avoid setting `verify=False` for the first request to a host while using a Requests Session. * For `requests<2.32.0`, call `close()` on `Session` objects to clear existing connections if `verify=False` is used. ### Related Links * [https://github.com/psf/requests/pull/6655](https://togithub.com/psf/requests/pull/6655) --- ### Release Notes
psf/requests (requests) ### [`v2.32.2`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2322-2024-05-21) [Compare Source](https://togithub.com/psf/requests/compare/v2.32.1...v2.32.2) **Deprecations** - To provide a more stable migration for custom HTTPAdapters impacted by the CVE changes in 2.32.0, we've renamed `_get_connection` to a new public API, `get_connection_with_tls_context`. Existing custom HTTPAdapters will need to migrate their code to use this new API. `get_connection` is considered deprecated in all versions of Requests>=2.32.0. A minimal (2-line) example has been provided in the linked PR to ease migration, but we strongly urge users to evaluate if their custom adapter is subject to the same issue described in CVE-2024-35195. ([#​6710](https://togithub.com/psf/requests/issues/6710)) ### [`v2.32.1`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2321-2024-05-20) [Compare Source](https://togithub.com/psf/requests/compare/v2.32.0...v2.32.1) **Bugfixes** - Add missing test certs to the sdist distributed on PyPI. ### [`v2.32.0`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2320-2024-05-20) [Compare Source](https://togithub.com/psf/requests/compare/v2.31.0...v2.32.0) **Security** - Fixed an issue where setting `verify=False` on the first request from a Session will cause subsequent requests to the *same origin* to also ignore cert verification, regardless of the value of `verify`. (https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56) **Improvements** - `verify=True` now reuses a global SSLContext which should improve request time variance between first and subsequent requests. It should also minimize certificate load time on Windows systems when using a Python version built with OpenSSL 3.x. ([#​6667](https://togithub.com/psf/requests/issues/6667)) - Requests now supports optional use of character detection (`chardet` or `charset_normalizer`) when repackaged or vendored. This enables `pip` and other projects to minimize their vendoring surface area. The `Response.text()` and `apparent_encoding` APIs will default to `utf-8` if neither library is present. ([#​6702](https://togithub.com/psf/requests/issues/6702)) **Bugfixes** - Fixed bug in length detection where emoji length was incorrectly calculated in the request content-length. ([#​6589](https://togithub.com/psf/requests/issues/6589)) - Fixed deserialization bug in JSONDecodeError. ([#​6629](https://togithub.com/psf/requests/issues/6629)) - Fixed bug where an extra leading `/` (path separator) could lead urllib3 to unnecessarily reparse the request URI. ([#​6644](https://togithub.com/psf/requests/issues/6644)) **Deprecations** - Requests has officially added support for CPython 3.12 ([#​6503](https://togithub.com/psf/requests/issues/6503)) - Requests has officially added support for PyPy 3.9 and 3.10 ([#​6641](https://togithub.com/psf/requests/issues/6641)) - Requests has officially dropped support for CPython 3.7 ([#​6642](https://togithub.com/psf/requests/issues/6642)) - Requests has officially dropped support for PyPy 3.7 and 3.8 ([#​6641](https://togithub.com/psf/requests/issues/6641)) **Documentation** - Various typo fixes and doc improvements. **Packaging** - Requests has started adopting some modern packaging practices. The source files for the projects (formerly `requests`) is now located in `src/requests` in the Requests sdist. ([#​6506](https://togithub.com/psf/requests/issues/6506)) - Starting in Requests 2.33.0, Requests will migrate to a PEP 517 build system using `hatchling`. This should not impact the average user, but extremely old versions of packaging utilities may have issues with the new packaging format.
--- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/libretime/libretime). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- analyzer/requirements.txt | 2 +- analyzer/setup.py | 2 +- api-client/requirements.txt | 2 +- api-client/setup.py | 2 +- api/requirements.txt | 2 +- api/setup.py | 2 +- playout/requirements.txt | 2 +- playout/setup.py | 2 +- worker/requirements.txt | 2 +- worker/setup.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/analyzer/requirements.txt b/analyzer/requirements.txt index 9ae5fe0db..617ef6a0b 100644 --- a/analyzer/requirements.txt +++ b/analyzer/requirements.txt @@ -2,5 +2,5 @@ # This file is auto-generated by tools/extract_requirements.py. mutagen>=1.45.1,<1.48 pika>=1.0.0,<1.4 -requests>=2.31.0,<2.32 +requests>=2.32.2,<2.33 typing_extensions diff --git a/analyzer/setup.py b/analyzer/setup.py index e587b668d..a309830fa 100644 --- a/analyzer/setup.py +++ b/analyzer/setup.py @@ -24,7 +24,7 @@ setup( install_requires=[ "mutagen>=1.45.1,<1.48", "pika>=1.0.0,<1.4", - "requests>=2.31.0,<2.32", + "requests>=2.32.2,<2.33", "typing_extensions", ], extras_require={ diff --git a/api-client/requirements.txt b/api-client/requirements.txt index 434d2c7eb..645acbb03 100644 --- a/api-client/requirements.txt +++ b/api-client/requirements.txt @@ -1,4 +1,4 @@ # Please do not edit this file, edit the setup.py file! # This file is auto-generated by tools/extract_requirements.py. python-dateutil>=2.8.1,<2.10 -requests>=2.31.0,<2.32 +requests>=2.32.2,<2.33 diff --git a/api-client/setup.py b/api-client/setup.py index efb99f785..9acdb7225 100644 --- a/api-client/setup.py +++ b/api-client/setup.py @@ -19,7 +19,7 @@ setup( python_requires=">=3.8", install_requires=[ "python-dateutil>=2.8.1,<2.10", - "requests>=2.31.0,<2.32", + "requests>=2.32.2,<2.33", ], extras_require={ "dev": [ diff --git a/api/requirements.txt b/api/requirements.txt index 10bdc8313..6be0c53c2 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -7,5 +7,5 @@ djangorestframework>=3.14.0,<3.16 drf-spectacular>=0.22.1,<0.28 gunicorn>=22.0.0,<22.1 psycopg[c]>=3.1.8,<3.2 -requests>=2.31.0,<2.32 +requests>=2.32.2,<2.33 uvicorn[standard]>=0.17.6,<0.31.0 diff --git a/api/setup.py b/api/setup.py index 451292be5..e8744a555 100644 --- a/api/setup.py +++ b/api/setup.py @@ -31,7 +31,7 @@ setup( "django>=4.2.0,<4.3", "djangorestframework>=3.14.0,<3.16", "drf-spectacular>=0.22.1,<0.28", - "requests>=2.31.0,<2.32", + "requests>=2.32.2,<2.33", ], extras_require={ "prod": [ diff --git a/playout/requirements.txt b/playout/requirements.txt index 35c1c882a..84e5410cb 100644 --- a/playout/requirements.txt +++ b/playout/requirements.txt @@ -6,5 +6,5 @@ kombu==4.6.11 lxml>=4.5.0,<6.0.0 mutagen>=1.45.1,<1.48 python-dateutil>=2.8.1,<2.10 -requests>=2.31.0,<2.32 +requests>=2.32.2,<2.33 typing-extensions diff --git a/playout/setup.py b/playout/setup.py index 5949dbe0b..2aaca8299 100644 --- a/playout/setup.py +++ b/playout/setup.py @@ -31,7 +31,7 @@ setup( "lxml>=4.5.0,<6.0.0", "mutagen>=1.45.1,<1.48", "python-dateutil>=2.8.1,<2.10", - "requests>=2.31.0,<2.32", + "requests>=2.32.2,<2.33", "typing-extensions", ], extras_require={ diff --git a/worker/requirements.txt b/worker/requirements.txt index cd16b809d..df2cfb21b 100644 --- a/worker/requirements.txt +++ b/worker/requirements.txt @@ -3,4 +3,4 @@ celery==4.4.7 kombu==4.6.11 mutagen>=1.45.1,<1.48 -requests>=2.31.0,<2.32 +requests>=2.32.2,<2.33 diff --git a/worker/setup.py b/worker/setup.py index c56fbec02..4e176d2d4 100644 --- a/worker/setup.py +++ b/worker/setup.py @@ -25,7 +25,7 @@ setup( "celery==4.4.7", "kombu==4.6.11", "mutagen>=1.45.1,<1.48", - "requests>=2.31.0,<2.32", + "requests>=2.32.2,<2.33", ], extras_require={ "dev": [