[CU-86b4umhm1] Update dependency pyjwt to v2.12.0 [SECURITY]#159
Open
dnastack-renovate[bot] wants to merge 1 commit intomainfrom
Open
[CU-86b4umhm1] Update dependency pyjwt to v2.12.0 [SECURITY]#159dnastack-renovate[bot] wants to merge 1 commit intomainfrom
dnastack-renovate[bot] wants to merge 1 commit intomainfrom
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.10.1→2.12.0GitHub Vulnerability Alerts
CVE-2026-32597
Summary
PyJWT does not validate the
crit(Critical) Header Parameter defined inRFC 7515 §4.1.11. When a JWS token contains a
critarray listingextensions that PyJWT does not understand, the library accepts the token
instead of rejecting it. This violates the MUST requirement in the RFC.
This is the same class of vulnerability as CVE-2025-59420 (Authlib),
which received CVSS 7.5 (HIGH).
RFC Requirement
RFC 7515 §4.1.11:
Proof of Concept
Expected:
jwt.exceptions.InvalidTokenError: Unsupported critical extension: x-custom-policyActual: Token accepted, payload returned.
Comparison with RFC-compliant library
Impact
gateway using jwcrypto rejects, backend using PyJWT accepts)
critcarries enforcement semantics(MFA, token binding, scope restrictions)
cnf(Proof-of-Possession) can besilently ignored
Suggested Fix
In
jwt/api_jwt.py, add validation in_validate_headers()ordecode():CWE
References
Release Notes
jpadilla/pyjwt (pyjwt)
v2.12.0Compare Source
Fixed
#​1134 <https://github.com/jpadilla/pyjwt/pull/1134>__HTTPErrorresponse to preventResourceWarningon Python 3.14 by @veeceey in#​1133 <https://github.com/jpadilla/pyjwt/pull/1133>__algorithmsdict in PyJWK instances by @akx in#​1143 <https://github.com/jpadilla/pyjwt/pull/1143>__GHSA-752w-5fwx-jx9f <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-752w-5fwx-jx9f>__#​1148 <https://github.com/jpadilla/pyjwt/pull/1148>__Added
#​1105 <https://github.com/jpadilla/pyjwt/pull/1105>__#​964 <https://github.com/jpadilla/pyjwt/pull/964>__#​1041 <https://github.com/jpadilla/pyjwt/pull/1041>__issclaim is a string during encoding and decoding by @pachewise in#​1040 <https://github.com/jpadilla/pyjwt/pull/1040>__optionsin decode, decode_complete by @pachewise in#​1045 <https://github.com/jpadilla/pyjwt/pull/1045>__#​1068 <https://github.com/jpadilla/pyjwt/pull/1068>__SyntaxWarning\s/DeprecationWarning\s caused by invalid escape sequences by @kurtmckee in#​1103 <https://github.com/jpadilla/pyjwt/pull/1103>__#​1114 <https://github.com/jpadilla/pyjwt/pull/1114>__increase the strictness of the type checking, and remove the mypy pre-commit hook
by @kurtmckee in
#​1112 <https://github.com/jpadilla/pyjwt/pull/1112>__Added
issclaim by @fabianbadoi inGHSA-75c5-xw7c-p5pm <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-75c5-xw7c-p5pm>__v2.11.0Compare Source
What's Changed
optionsin decode, decode_complete; Improve docs by @pachewise in #1045algorithm=Noneto "none" by @qqii in #1056PyJWKClient.get_signing_key_from_jwtannotation by @khvn26 in #1048floatinstead ofintforlifespanandtimeoutby @nikitagashkov in #1068SyntaxWarningcaused by invalid escape sequences by @kurtmckee in #1103pep517, which is deprecated, tobuildby @kurtmckee in #1108New Contributors
Full Changelog: jpadilla/pyjwt@2.10.1...2.11.0
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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.