5.6medium
Requests `Session` object does not verify requests after making first request with verify=False
- Severity
- 5.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9wx4-h78v-vm56PYSEC-2026-1873
Description
Requests is a HTTP library. Prior to 2.32.0, 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 host 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. This vulnerability is fixed in 2.32.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| psf requests | < 2.32.0 | CVE List |
| request_project request | before 2.32.0 | CVE List |
| requests (PyPI) | before 2.32.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 5.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 5.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | 5.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Requests is a HTTP library. Prior to 2.32.0, 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 host 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. This vulnerability is fixed in 2.32.0.
GitHub Advisory Database
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.
NVD (es)
Requests es una librería HTTP. Antes de 2.32.0, al realizar solicitudes a través de una `Sesión` de Solicitudes, si la primera solicitud se realiza con `verify=False` para deshabilitar la verificación de certificados, todas las solicitudes posteriores al mismo host continuarán ignorando la verificación de certificados independientemente de los cambios en el valor de "verificar". Este comportamiento continuará durante el ciclo de vida de la conexión en el grupo de conexiones. Esta vulnerabilidad se solucionó en 2.32.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-35195 changed 2025-07-31 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9wx4-h78v-vm56 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-35195 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1873 changed 2026-07-07 | CC-BY-4.0 |