Skip to content

Update dependency requests to v2.32.2 [SECURITY]#87

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-requests-vulnerability
Open

Update dependency requests to v2.32.2 [SECURITY]#87
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-requests-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Sep 25, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
requests (changelog) 2.31.02.32.2 age confidence
requests (changelog) ==2.31.0==2.32.2 age confidence

Requests Session object does not verify requests after making first request with verify=False

CVE-2024-35195 / GHSA-9wx4-h78v-vm56

More information

Details

When using a requests.Session, if the first request to a given origin is made with verify=False, TLS certificate verification may remain disabled for all subsequent requests to that origin, even if verify=True is explicitly specified later.

This occurs because the underlying connection is reused from the session's connection pool, causing the initial TLS verification setting to persist for the lifetime of the pooled connection. As a result, applications may unintentionally send requests without certificate verification, leading to potential man-in-the-middle attacks and compromised confidentiality or integrity.

This behavior affects versions of requests prior to 2.32.0.

Severity

  • CVSS Score: 5.6 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

psf/requests (requests)

v2.32.2

Compare Source

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)

v2.32.1

Compare Source

Bugfixes

  • Add missing test certs to the sdist distributed on PyPI.

v2.32.0

Compare Source

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.
    (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)
  • 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)

Bugfixes

  • Fixed bug in length detection where emoji length was incorrectly
    calculated in the request content-length. (#​6589)
  • Fixed deserialization bug in JSONDecodeError. (#​6629)
  • Fixed bug where an extra leading / (path separator) could lead
    urllib3 to unnecessarily reparse the request URI. (#​6644)

Deprecations

  • Requests has officially added support for CPython 3.12 (#​6503)
  • Requests has officially added support for PyPy 3.9 and 3.10 (#​6641)
  • Requests has officially dropped support for CPython 3.7 (#​6642)
  • Requests has officially dropped support for PyPy 3.7 and 3.8 (#​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)
  • 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: (UTC)

  • Branch creation
    • ""
  • 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] Update dependency requests to v2.32.2 [SECURITY] - autoclosed Sep 25, 2024
@renovate renovate Bot closed this Sep 25, 2024
@renovate renovate Bot deleted the renovate/pypi-requests-vulnerability branch September 25, 2024 19:27
@renovate renovate Bot restored the renovate/pypi-requests-vulnerability branch September 26, 2024 19:11
@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] - autoclosed Update dependency requests to v2.32.2 [SECURITY] Sep 26, 2024
@renovate renovate Bot reopened this Sep 26, 2024
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from 40c960b to 9a0aa5c Compare September 26, 2024 19:12
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch 3 times, most recently from 0b9f2e1 to d786166 Compare November 3, 2024 14:08
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from d786166 to 7f0a271 Compare January 14, 2025 13:42
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from 7f0a271 to b401cc7 Compare January 30, 2025 19:18
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from b401cc7 to a4d84f8 Compare March 3, 2025 18:00
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch 2 times, most recently from 59fe54a to ade71bd Compare March 17, 2025 18:36
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from ade71bd to fc5bb12 Compare April 8, 2025 14:44
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from fc5bb12 to d5c8a7c Compare May 7, 2025 14:10
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch 2 times, most recently from 8213655 to ba644e0 Compare August 13, 2025 12:00
@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] Update dependency requests to v2.32.4 [SECURITY] Aug 13, 2025
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from ba644e0 to f47501b Compare August 19, 2025 19:05
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from f47501b to e0966da Compare October 16, 2025 01:06
@renovate renovate Bot changed the title Update dependency requests to v2.32.4 [SECURITY] Update dependency requests to v2.32.2 [SECURITY] Oct 16, 2025
@renovate

renovate Bot commented Oct 16, 2025

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
Updating dependencies
Resolving dependencies...

The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.

Package pandas-ta (0.3.14b0) not found.

@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] Update dependency requests to v2.33.1 [SECURITY] Apr 23, 2026
@renovate renovate Bot changed the title Update dependency requests to v2.33.1 [SECURITY] Update dependency requests to v2.32.2 [SECURITY] Apr 23, 2026
@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] Update dependency requests to v2.32.2 [SECURITY] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot deleted the renovate/pypi-requests-vulnerability branch April 27, 2026 17:35
@renovate renovate Bot changed the title Update dependency requests to v2.32.2 [SECURITY] - autoclosed Update dependency requests to v2.32.2 [SECURITY] Apr 29, 2026
@renovate renovate Bot reopened this Apr 29, 2026
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch 2 times, most recently from e0966da to 97d6374 Compare April 29, 2026 20:49
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

Successfully merging this pull request may close these issues.

0 participants