Skip to content

chore: raise the jwcrypto minimum to 1.6.3 - #171

Open
frederikprijck wants to merge 2 commits into
mainfrom
chore/raise-jwcrypto-minimum
Open

frederikprijck wants to merge 2 commits into
mainfrom
chore/raise-jwcrypto-minimum

Conversation

@frederikprijck

@frederikprijck frederikprijck commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Changes

Raise the declared jwcrypto minimum from ^1.5.7 to ^1.6.3 in pyproject.toml, and refresh poetry.lock (Poetry 2.3.4 format).

Why: 1.6.3 is the first release with all the security fixes since 1.5.7 (CVE-2026-80179 (fixed in 1.5.9), CVE-2026-84185 (1.6.0), CVE-2026-92091 (1.6.1) and CVE-2026-142105 (1.6.3); the last affects every release up to 1.6.2) and, like 1.5.9 and later, parses a JWKS containing keys of an unknown type and supports newer JOSE algorithms and the AKP key type without requiring a newer cryptography than the repo declares. jwcrypto 1.5.9 through 1.6.1 require cryptography>=49.0.0; 1.6.2 and later require cryptography>=39.0.0 (all with requires_python >=3.9), so the repo's cryptography>=45.0.1 and python >=3.10 stay valid. This is a same-major bump, not a breaking change.

  • Endpoints: none
  • Classes and methods: none added, deleted, deprecated, or changed; no source changes
  • Lockfile: only the jwcrypto entry (1.6.1 to 1.6.3, which also relaxes its cryptography requirement from >=49.0.0 to >=39.0.0) and the content-hash change. cryptography stays at 51.0.0.
  • Usage in this repo: jwcrypto is only used by encryption.py (JWE helpers for AbstractTokenStore); access token and DPoP verification use authlib.
  • License: unchanged, still covered by the existing .snyk waiver for jwcrypto. requirements.txt does not list jwcrypto, so it is unchanged.
  • Alternatives considered: ^1.5.9 was rejected because it would force cryptography>=49.0.0 on consumers while this repo declares >=45.0.1. ^1.6.2 was rejected because it still allows 1.6.2, which is affected by CVE-2026-142105.

References

Testing

No new tests: this is a dependency metadata change with no source changes. On Python 3.12 with the refreshed lockfile, poetry run pytest gives 506 passed (same as before the change) and poetry run ruff check . passes. CI runs the Python 3.10 to 3.14 matrix. Reviewers can run poetry install && poetry run pytest && poetry run ruff check ..

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

🤖 Generated with Claude Code

Raise the declared jwcrypto minimum from ^1.5.7 to ^1.6.2. 1.6.2 is the
first release that parses a JWKS containing keys of an unknown type and
supports newer JOSE algorithms and the AKP key type without requiring a
newer cryptography than the repo declares (jwcrypto 1.5.9 to 1.6.1 require
cryptography>=49.0.0, 1.6.2 requires >=39.0.0). Same major version, so
this is not a breaking change.

poetry.lock now resolves jwcrypto 1.6.3 (was 1.6.1); cryptography stays at
51.0.0 and the declared cryptography>=45.0.1 and Python >=3.10 are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@frederikprijck
frederikprijck requested a review from a team as a code owner December 4, 2026 12:49
1.6.3 contains the fix for CVE-2026-142105, which affects every release up to 1.6.2. It has the same requirements as 1.6.2 (cryptography>=39.0.0), and the lockfile already resolved it.

Co-Authored-By: Claude <noreply@anthropic.com>
@frederikprijck frederikprijck changed the title chore: raise the jwcrypto minimum to 1.6.2 chore: raise the jwcrypto minimum to 1.6.3 Dec 4, 2026

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