Skip to content

Update dependency requests to v2.33.0 [SECURITY]#171

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-requests-vulnerability
Closed

Update dependency requests to v2.33.0 [SECURITY]#171
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-requests-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 26, 2026

This PR contains the following updates:

Package Change Age Confidence
requests (changelog) ==2.32.5==2.33.0 age confidence

GitHub Vulnerability Alerts

CVE-2026-25645

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.


Release Notes

psf/requests (requests)

v2.33.0

Compare Source

Announcements

  • 📣 Requests is adding inline types. If you have a typed code base that
    uses Requests, please take a look at #​7271. Give it a try, and report
    any gaps or feedback you may have in the issue. 📣

Security

  • CVE-2026-25645 requests.utils.extract_zipped_paths now extracts
    contents to a non-deterministic location to prevent malicious file
    replacement. This does not affect default usage of Requests, only
    applications calling the utility function directly.

Improvements

  • Migrated to a PEP 517 build system using setuptools. (#​7012)

Bugfixes

  • Fixed an issue where an empty netrc entry could cause
    malformed authentication to be applied to Requests on
    Python 3.11+. (#​7205)

Deprecations

  • Dropped support for Python 3.9 following its end of support. (#​7196)

Documentation

  • Various typo fixes and doc improvements.

Configuration

📅 Schedule: Branch creation - "" (UTC), 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 was generated by Mend Renovate. View the repository job log.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 629c98a78a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread requirements.txt
@@ -6,6 +6,6 @@ packaging==25.0
pluggy==1.6.0
pytest==8.4.2
python-dateutil==2.9.0.post0
requests==2.32.5
requests==2.33.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep requests on a Python 3.9-compatible version

Pinning requests==2.33.0 introduces a resolver break for environments still on Python 3.9, which this repo explicitly supports (setup.py has python_requires=">=3.9" and .circleci/config.yml runs on cimg/python:3.9). Because Requests 2.33.0 drops Python 3.9 support, pip install -r requirements.txt will fail in that CI job and for 3.9 users, so this update is incompatible with the project’s declared/runtime targets.

Useful? React with 👍 / 👎.

@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch 2 times, most recently from d7ceb82 to 1d67dea Compare April 15, 2026 00:49
@renovate renovate Bot force-pushed the renovate/pypi-requests-vulnerability branch from 1d67dea to 4a727d1 Compare April 15, 2026 01:20
@frankw2 frankw2 closed this Apr 15, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 15, 2026

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (==2.33.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate Bot deleted the renovate/pypi-requests-vulnerability branch April 15, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant