Skip to content

Update cryptography and requests dependencies#17

Closed
naomi-robusta wants to merge 7 commits intomainfrom
claude/update-vulnerable-deps-4HOju
Closed

Update cryptography and requests dependencies#17
naomi-robusta wants to merge 7 commits intomainfrom
claude/update-vulnerable-deps-4HOju

Conversation

@naomi-robusta
Copy link
Copy Markdown
Contributor

Summary

This PR updates the cryptography and requests dependencies to newer versions with improved Python version compatibility handling.

Key Changes

  • cryptography: Bumped from 46.0.5 to 46.0.7
  • requests: Updated with Python version-specific constraints:
    • Version ^2.32.4 for Python <3.10
    • Version >=2.33.0,<2.33.1 for Python >=3.10

Details

The requests dependency now uses environment markers to specify different version ranges based on the Python version being used. This allows the project to leverage newer features and improvements in requests 2.33.0+ for Python 3.10+ while maintaining compatibility with earlier Python versions using the 2.32.x series.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD

claude added 6 commits April 26, 2026 13:40
Bumps cryptography, Pygments, pyasn1, PyJWT, and requests to
versions that resolve CVE-2026-34073, CVE-2026-39892, CVE-2026-4539,
CVE-2026-30922, CVE-2026-32597, and CVE-2026-25645.

requests 2.33+ dropped Python 3.9 support, so it's expressed as a
multi-constraint with 2.32.x retained for Python <3.10.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD
requests 2.33.0+ requires Python >=3.10. The previous multi-constraint
approach left Python 3.9 installs on requests 2.32.x, which is still
vulnerable. Python 3.9 has been EOL since October 2025.

Also simplifies the cryptography pin now that the 3.9.2 marker is moot.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD
Reverts the 3.9 drop. Python 3.9 installs stay on requests 2.32.5
(no upstream backport for CVE-2026-25645 exists) while Python >=3.10
gets 2.33.1.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD
2.33.1 was released 2026-03-30 (less than a month old). 2.33.0
also fixes CVE-2026-25645 and has been out long enough to be
considered stable.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD
Bumps pyasn1 0.6.2 -> 0.6.3 (CVE-2026-30922) and PyJWT 2.10.1 -> 2.12.1
(CVE-2026-32597). Both are transitive deps; only the lockfile changes.

Reverts the earlier cryptography/Pygments/requests bumps and Python
constraint changes — those CVEs will be addressed separately.

https://claude.ai/code/session_01Nsf9RKZvau6jx2vA8MULoD
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.

2 participants