CVE-2024-35195
JSON

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 packageVersionsReported by
psf requests< 2.32.0CVE List
request_project requestbefore 2.32.0CVE List
requests (PyPI)before 2.32.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
GitHub5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
PyPA Advisory Database5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-670

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

https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56web
https://github.com/psf/requests/pull/6655web
https://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22facfix, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ/
https://nvd.nist.gov/vuln/detail/CVE-2024-35195advisory
https://github.com/psf/requestspackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Qweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZweb
https://pypi.org/project/requestspackage
https://github.com/advisories/GHSA-9wx4-h78v-vm56advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-35195 changed 2025-07-31CVE Terms of Use
GitHub Advisory DatabaseGHSA-9wx4-h78v-vm56 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-35195 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1873 changed 2026-07-07CC-BY-4.0