Skip to content

chore(deps): pin dependency requests to v2.31.0 [security]#27

Open
khepri-bot[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-requests-vulnerability
Open

chore(deps): pin dependency requests to v2.31.0 [security]#27
khepri-bot[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-requests-vulnerability

Conversation

@khepri-bot
Copy link
Copy Markdown
Contributor

@khepri-bot khepri-bot Bot commented May 6, 2026

This PR contains the following updates:

Package Type Update Change
requests (changelog) tool.pdm.dev-dependencies pin >=2.31.0==2.31.0

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

CVE-2024-35195 / GHSA-9wx4-h78v-vm56

More information

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.

Severity

  • CVSS Score: 5.6 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Requests vulnerable to .netrc credentials leak via malicious URLs

CVE-2024-47081 / GHSA-9hjg-9r4m-mvj7

More information

Details

Impact

Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs.

Workarounds

For older versions of Requests, use of the .netrc file can be disabled with trust_env=False on your Requests Session (docs).

References

https://github.com/psf/requests/pull/6965
https://seclists.org/fulldisclosure/2025/Jun/2

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function

CVE-2026-25645 / GHSA-gc5v-m9x4-r6x2

More information

Details

Impact

The requests.utils.extract_zipped_paths() utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one.

Affected usages

Standard usage of the Requests library is not affected by this vulnerability. Only applications that call extract_zipped_paths() directly are impacted.

Remediation

Upgrade to at least Requests 2.33.0, where the library now extracts files to a non-deterministic location.

If developers are unable to upgrade, they can set TMPDIR in their environment to a directory with restricted write access.

Severity

  • CVSS Score: 4.4 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).

Add the preset :preserveSemverRanges to your config if you don't want to pin your dependencies.


Configuration

📅 Schedule: (in timezone America/New_York)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@khepri-bot khepri-bot Bot added the renovate label May 6, 2026
@khepri-bot khepri-bot Bot changed the title chore(deps): update dependency requests to v2.33.0 [security] chore(deps): update dependency requests to v2.33.0 [security] - autoclosed May 6, 2026
@khepri-bot khepri-bot Bot closed this May 6, 2026
@khepri-bot khepri-bot Bot deleted the renovate/pypi-requests-vulnerability branch May 6, 2026 19:46
@khepri-bot khepri-bot Bot changed the title chore(deps): update dependency requests to v2.33.0 [security] - autoclosed chore(deps): pin dependency requests to v2.31.0 [security] May 12, 2026
@khepri-bot khepri-bot Bot reopened this May 12, 2026
@khepri-bot khepri-bot Bot force-pushed the renovate/pypi-requests-vulnerability branch 2 times, most recently from 22cbd92 to eeaad8d Compare May 12, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants