Bump pyjwt from 2.12.0 to 2.13.0 in /chat-connector#50
Open
dependabot[bot] wants to merge 1 commit into
Open
Conversation
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.12.0 to 2.13.0. - [Release notes](https://github.com/jpadilla/pyjwt/releases) - [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst) - [Commits](jpadilla/pyjwt@2.12.0...2.13.0) --- updated-dependencies: - dependency-name: pyjwt dependency-version: 2.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
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.
Bumps pyjwt from 2.12.0 to 2.13.0.
Release notes
Sourced from pyjwt's releases.
Changelog
Sourced from pyjwt's changelog.
... (truncated)
Commits
7144e45Apply ruff formatd2f4becRestorecast()calls with cross-versiontype: ignoreforprepare_key22f478cRemove redundant casts inRSAAlgorithm.prepare_keyand `ECAlgorithm.prepare...95791b1Bundle security fixes and hardening into 2.13.0dcc27a9[pre-commit.ci] pre-commit autoupdate (#1155)9d08a9a[pre-commit.ci] pre-commit autoupdate (#1146)b87c100Bump codecov/codecov-action from 5 to 6 (#1154)40e3147Migrate development extras to dependency groups (#1152)a4e1a3dAdd typing_extensions dependency for Python < 3.11 (#1151)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by cubic
Upgrade
PyJWTfrom 2.12.0 to 2.13.0 in chat-connector to include recent security fixes and stricter JWT verification. This hardens token validation and blocks algorithm confusion and unsafe JWKS URL schemes.JWT_SECRET); empty keys now raiseInvalidKeyError.PyJWK/PyJWKClient, ensure the token headeralgmatches the JWK’s algorithm; mismatches now fail.http/httpsJWKS URLs;file://,ftp://, anddata:are rejected.Written for commit 5a00a84. Summary will update on new commits. Review in cubic
Greptile Summary
This is an automated dependency bump of
PyJWTfrom 2.12.0 to 2.13.0 inchat-connector/requirements.txt. Version 2.13.0 is a security release patching five CVEs (algorithm-confusion via HMAC/JWK, algorithm allow-list bypass viaPyJWK, DoS via detached-payload decode, SSRF via non-HTTPSPyJWKClientURIs, and cache eviction on fetch error).jwt.encode()with RS256 and an RSA private key inlineworks.py; there is no JWT decoding, no HMAC secret, noPyJWKClient, and nob64=falsetoken handling — making all five patched vulnerabilities irrelevant to this codebase.PyJWKalg-match enforcement, non-HTTPS URI rejection, per-callenforce_minimum_key_length) affect the existing code paths.Confidence Score: 5/5
Safe to merge — the codebase only calls jwt.encode() with RS256 and none of the patched vulnerabilities or breaking changes touch that code path.
The change is a single-line version bump to a security-fix release. The only JWT call in the codebase is an RS256 encode in lineworks.py; the five patched CVEs all target decoding paths (HMAC algorithm confusion, PyJWK allow-list bypass, detached-payload DoS, PyJWKClient SSRF, cache eviction), and none of the breaking behavioral changes apply here.
No files require special attention.
Important Files Changed
Sequence Diagram
sequenceDiagram participant LW as lineworks.py participant PyJWT as PyJWT 2.13.0 participant LWAuth as LINE WORKS Auth LW->>PyJWT: "jwt.encode(claims, private_key, algorithm="RS256")" PyJWT-->>LW: signed JWT string LW->>LWAuth: "POST /oauth2/v2.0/token (assertion=JWT)" LWAuth-->>LW: access_tokenReviews (1): Last reviewed commit: "Bump pyjwt from 2.12.0 to 2.13.0 in /cha..." | Re-trigger Greptile