Skip to content

SK-2851: Loosen PyJWT, python-dotenv, urllib3 dependency pins#256

Closed
jstjoe wants to merge 1 commit into
mainfrom
claude/sweet-ptolemy-NVZDD
Closed

SK-2851: Loosen PyJWT, python-dotenv, urllib3 dependency pins#256
jstjoe wants to merge 1 commit into
mainfrom
claude/sweet-ptolemy-NVZDD

Conversation

@jstjoe
Copy link
Copy Markdown
Collaborator

@jstjoe jstjoe commented May 26, 2026

Summary

Widens three transitive dependency pins that were unnecessarily tight, blocking customers from picking up upstream security fixes (notably CVE-2026-32597 in PyJWT < 2.12.0). Reported via SK-2851 by a customer hitting all three conflicts at once.

Dep Before After Why
PyJWT ~=2.9.0 (2.9.x only) >= 2.9, < 3 Allow 2.12+ so customers can resolve CVE-2026-32597 in their own code. The SDK only signs JWTs and isn't itself exposed to the CVE, so the floor stays at 2.9.
python-dotenv ~=1.0.1 (1.0.x only) >= 1.0, < 2 Latest is 1.2.2. The SDK uses load_dotenv()/find_dotenv(), stable since 1.0.
urllib3 >= 1.25.3, < 2.1.0 (req.txt) / <= 2.6.3 (setup.py) >= 1.25.3, < 3 Opens the full 2.x line (latest 2.7.0). Also harmonizes the two files, which had drifted.

No PyJWT 3 / python-dotenv 2 / urllib3 3 exist yet, so the <major+1 caps don't restrict anything reachable today and protect us from a future breaking major.

Test plan

  • pip install -e . resolves cleanly in a fresh venv (picks PyJWT 2.13.0, python-dotenv 1.2.2, urllib3 2.7.0)
  • Full test suite passes against the new latest versions (437 tests, 8 subtests)
  • CI green on this PR

https://claude.ai/code/session_01KSRSfYXWLyJHWjTAKmAXNo


Generated by Claude Code

Widen three transitive pins that were forcing customers onto outdated
versions and blocking them from picking up upstream security fixes
(notably CVE-2026-32597 in PyJWT < 2.12.0):

  PyJWT         ~=2.9.0           -> >= 2.9, < 3
  python-dotenv ~=1.0.1           -> >= 1.0, < 2
  urllib3       >= 1.25.3, < 2.1  -> >= 1.25.3, < 3

Also harmonizes the urllib3 range between setup.py and requirements.txt
(previously diverged at <=2.6.3 vs <2.1.0). Verified the test suite
passes against the latest of each dep (PyJWT 2.13.0, python-dotenv 1.2.2,
urllib3 2.7.0).

https://claude.ai/code/session_01KSRSfYXWLyJHWjTAKmAXNo
@Devesh-Skyflow
Copy link
Copy Markdown
Collaborator

Closing this PR since these changes are already released

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.

3 participants