NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-35195: Requests `Session` object does not verify requests after making first request with verify=False

mediumCVSS 3.1 5.6GHSA-9wx4-h78v-vm56

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.

Published May 20, 2024 · Updated Jan 16, 2026

Affected packages

requests

Ecosystem
PyPI
Affected
< 2.32.0
Fixed in
2.32.0
Check
pip show requests

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to mikeassel, sigmavirus24, nateprewitt, liiiiiiaduarte34-art.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries