Repository navigation
fix(python-jwt): upgrade to 2.15.1 to address CVEs - #20301
Open
Kanishk Bansal (Kanishk-Bansal) wants to merge 1 commit into
Open
Kanishk Bansal (Kanishk-Bansal) wants to merge 1 commit into
Kanishk Bansal (Kanishk-Bansal) wants to merge 1 commit into
Conversation
Fedora f43 ships PyJWT 2.8.0 and f44 ships 2.10.1. Update to upstream 2.15.1 with a version overlay on the current f43 spec. The only other spec changes are the ones the new sdist needs: it is published as pyjwt-2.15.1.tar.gz, it has no setup.cfg any more, and its test requirements are a dependency group instead of the "tests" extra, so pytest is listed as a BuildRequires. Addresses CVE(s): CVE-2026-32597, CVE-2026-48522, CVE-2026-48524, CVE-2026-48525, CVE-2026-48526, CVE-2026-101917, CVE-2026-101918, CVE-2026-102267, CVE-2026-102268, CVE-2026-102269, CVE-2026-102270, CVE-2026-102271, CVE-2026-102275
Author
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The security-sensitive PyJWT upgrade changes JWT validation and test dependencies, while this PR’s Fedora 43 RPM build, inspection, and isolated downstream smoke-test results remain pending and require human verification.
No open issues 🎉
What changed in this PR
Upgrades Azure Linux’s python-jwt (PyJWT) from 2.8.0 to 2.15.1 to address reported vulnerabilities, retaining the Fedora 43 spec rather than switching to rawhide.
Changes:
- Moves the component into a dedicated definition with a checksum-pinned source archive.
- Adds overlays for the new source layout, build requirements, and P-192 test exclusions.
- Updates the lock fingerprint, rendered spec, and source checksum.
| File | Description |
|---|---|
specs/p/python-jwt/sources |
Replaces the old archive checksum with 2.15.1’s checksum. |
specs/p/python-jwt/python-jwt.spec |
Reflects the version upgrade and build/test adjustments. |
locks/python-jwt.lock |
Refreshes the component input fingerprint. |
base/comps/python-jwt/python-jwt.comp.toml |
Defines the component’s new source archive and checksum. |
base/comps/python-jwt/overlays/0001-update-to-2.15.1.overlay.toml |
Adapts the Fedora spec for the newer release. |
base/comps/components.toml |
Removes the inline entry now defined separately. |
Review effort: Balanced
Kanishk Bansal (Kanishk-Bansal)
marked this pull request as ready for review
November 15, 2026 10:49
Kanishk Bansal (Kanishk-Bansal)
requested a review
from a team
as a code owner
November 15, 2026 10:49
This branch has not been deployed
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.
Summary
Upgrade
python-jwt(PyJWT) from 2.8.0 to upstream 2.15.1 with a version overlay on the current Fedora f43 spec (f43 ships 2.8.0, f44 ships 2.10.1). This replaces #20034, which pinned rawhide. Rawhide's spec is not used; the only other spec edits are the ones the new sdist needs. Upstream diff: 2.8.0...2.15.1.CVEs addressed (13)
critheader extensions): affected< 2.11.0, patched in 2.12.0<= 2.12.1, patched in 2.13.0kid): affected<= 2.12.1, patched in 2.13.0b64=false): affected>= 2.8.0, <= 2.12.1, patched in 2.13.0<= 2.10.1, patched in 2.13.0<= 2.13.0, patched in 2.14.0get_signing_key_from_jwt): affected>= 2.0.0a1, <= 2.14.0, patched in 2.15.0<= 2.13.0, patched in 2.14.0<= 2.13.0, patched in 2.14.0<= 2.13.0, patched in 2.14.0is_pem_format): affected<= 2.13.0, patched in 2.14.0>= 2.1.0, <= 2.14.0, patched in 2.15.0Notes
Version, all forced by the 2.15.1 sdist:pyjwt-2.15.1), sosrcnameispyjwt.setup.cfgedits in%prepare removed: 2.15.1 builds frompyproject.tomland ships nosetup.cfg.testsextra to a dependency group that pinscoverageandpytestversions, so%pyproject_buildrequiresonly generates thecryptoextra andpython3-pytestis added as a BuildRequires.test_ec_curve_validation_rejects_p192_for_es256andtest_ec_curve_validation_with_pem_keyload a P-192 key to check that ES256 rejects it, and the system OpenSSL does not support P-192 at all (Curve 1.2.840.10045.3.1.1 is not supported).python3-pygithub(pyjwt >= 2.4) andpython3-azure-cli-core(pyjwt >= 2.1); both import fine with 2.15.1 and pygithub's GitHub App JWT signing works (checked in the 4.0 chroot).davedoesdev/python-jwtproject, and CVE-2026-102265 only affects PyJWT 2.13.0. Both are dispute candidates.PyJWT-2.8.0.tar.gzchecksum is removed fromsourcesby the overlay.Changes
base/comps/components.toml: drop the inlinepython-jwtentry.base/comps/python-jwt/python-jwt.comp.toml: pin the 2.15.1 sdist.base/comps/python-jwt/overlays/0001-update-to-2.15.1.overlay.toml:Version,srcname,%prep, BuildRequires,%check, and old checksum.locks/python-jwt.lock,specs/p/python-jwt/: regenerated by azldev.Testing
python-jwtfor the 4.0 environment at the PR headf9a56ad332in about 6 min.azldev comp update --check-onlyis clean.