Skip to content

fix(deps): require pyjwt>=2.15.0 - #32

Open
sqrt-negativeone wants to merge 1 commit into
mainfrom
fix/deps-pyjwt-2.15
Open

sqrt-negativeone wants to merge 1 commit into
mainfrom
fix/deps-pyjwt-2.15

Conversation

@sqrt-negativeone

Copy link
Copy Markdown
Contributor

What & why

ojin-client declared pyjwt>=2.13.0,<3, so installing the SDK could still resolve a PyJWT with known holes: public keys (PEM with altered whitespace, DER, JWK containers) and empty keys accepted as HMAC secrets, PyJWKClient following redirects when fetching JWKS, and several denial-of-service bugs in token parsing. That's one critical and several high advisories, all fixed by 2.15.0.

  • pyproject.toml: floor raised to pyjwt>=2.15.0,<3; version bumped to 0.12.2 so the release pipeline publishes it.
  • uv.lock: resolves pyjwt 2.15.1.
  • CHANGELOG.md: 0.12.2 Security entry.

No SDK code changed. This is the same fix as journee-live/ojin#2303, which closed these advisories in the monorepo copies.

Checks (local, same steps as ci-verify)

  • ruff format --check src tests, ruff check src tests: clean
  • pytest tests --ignore=tests/integration: 290 passed
  • uv build: sdist and wheel build as 0.12.2

Merging publishes 0.12.2 to PyPI.

🤖 Generated with Claude Code

ojin-client allowed pyjwt>=2.13.0, so installing the SDK could still resolve
a PyJWT that lets public keys (altered-whitespace PEM, DER, JWK containers)
and empty keys act as HMAC secrets, lets PyJWKClient follow redirects when
fetching JWKS, and has several denial-of-service bugs in token parsing. The
floor moves to 2.15.0 and the lock resolves 2.15.1; the version is bumped to
0.12.2 so the release pipeline publishes the fix to PyPI.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

This branch has not been deployed

No deployments
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