Medium

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

  • Disclosed: 20.05.2024
  • Updated: 11.10.2026 15:17

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) requests < 2.32.0 2.32.0

References

CVSS score 5.6/10
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-670
Platform
Python (PyPI)
Package
requests
Disclosed
20.05.2024
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1873 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-9wx4-h78v-vm56 - CC BY 4.0

Vulnerability history: requests

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
10.2014 03.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 7

Disclosures per year

  1. 2017: 0
  2. 2018: 1
  3. 2019: 0
  4. 2020: 0
  5. 2021: 0
  6. 2022: 0
  7. 2023: 1
  8. 2024: 1
  9. 2025: 1
  10. 2026: 1

earlier: 3

  1. Medium · 5.3 CVE-2024-47081 < 2.32.4 2.32.4
  2. Requests `Session` object does not verify requests after making first request with verify=False this entry
    Medium · 5.6 CVE-2024-35195 < 2.32.0 2.32.0
  3. Medium · 6.1 CVE-2023-32681 >= 2.3.0, < 2.31.0 2.31.0
  4. High · 7.5 CVE-2018-18074 < 2.20.0 2.20.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.