MediumGHSA-9wx4-h78v-vm56CVE-2024-35195PYSEC-2026-1873

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

Published 20 May 2024 · Updated 10 Sept 2026

Is your project on an affected requests?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.32.0
Fixed in
2.32.0
Update to the fixed version for your release line, for example:pip install 'requests>=2.32.0'

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.

Is GHSA-9wx4-h78v-vm56 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected requests, and gives you the command that fixes it.

More advisories for requests

  • MediumCVE-2026-25645Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function · 25 Mar 2026
  • MediumCVE-2024-47081Requests vulnerable to .netrc credentials leak via malicious URLs · 9 Jun 2025
  • MediumCVE-2023-32681Unintended leak of Proxy-Authorization header in requests · 22 May 2023
  • MediumCVE-2014-1829Exposure of Sensitive Information to an Unauthorized Actor in Requests · 17 May 2022
  • MediumCVE-2014-1830Exposure of Sensitive Information to an Unauthorized Actor in Requests · 14 May 2022
  • MediumCVE-2015-2296Python Requests Session Fixation · 13 May 2022
All 8 advisories for requests

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.