Distro News

Ubuntu patches PyJWT denial-of-service and claim-bypass flaws across 22.04, 24.04 and 26.04 LTS

Key Takeaway

USN-9212-1 fixes a deeply nested header parsing crash in PyJWT on all supported LTS releases and a signature-verification options mutation bug that only affects Ubuntu 22.04 LTS.

Summary

Ubuntu published security notice USN-9212-1 on 26 November 2026 covering two vulnerabilities in PyJWT, the Python 3 implementation of JSON Web Token packaged as python3-jwt. The first issue, CVE-2026-102265, stems from incorrect error handling when parsing deeply nested token headers, which lets an attacker crash applications that process untrusted tokens, producing a denial of service. The second issue, CVE-2026-103001, involves PyJWT modifying the options mapping supplied by the calling application when signature verification is disabled; if that same mapping is reused in a later call with verification enabled, an attacker could bypass claim checks such as expiration. That second flaw is limited to Ubuntu 22.04 LTS.

Fixed package versions are available for all three supported LTS releases: python3-jwt 2.10.1-4ubuntu1.5 on Ubuntu 26.04 LTS (resolute), 2.7.0-1ubuntu0.6 on Ubuntu 24.04 LTS (noble), and 2.3.0-1ubuntu0.8 on Ubuntu 22.04 LTS (jammy). A standard system update pulls in the corrected packages. Any service, API gateway, or web application on these releases that validates JWTs with PyJWT is exposed until patched, and the 22.04 case is the more serious of the two because it can weaken authentication decisions rather than merely cause a crash.

What changes in the PyJWT security update

  • CVE-2026-102265 (denial of service): PyJWT mishandled errors while parsing deeply nested token headers, so a crafted token could make applications using the library fail unexpectedly; the fix ships in python3-jwt on 26.04, 24.04 and 22.04 LTS.
  • CVE-2026-103001 (claim-check bypass): When signature verification was disabled, PyJWT mutated the options mapping passed in by the application; reusing that mapping for a later call with verification enabled could let an attacker skip checks such as token expiration.
  • Release-specific exposure: The options-mutation flaw is documented as affecting only Ubuntu 22.04 LTS, while the nested-header parsing issue applies to all three supported LTS releases listed in the notice.
  • Fixed versions: python3-jwt 2.10.1-4ubuntu1.5 for 26.04 LTS, 2.7.0-1ubuntu0.6 for 24.04 LTS and 2.3.0-1ubuntu0.8 for 22.04 LTS; Ubuntu states a standard system update applies the corrections.

Why it matters

PyJWT is a common dependency for Python web services, API gateways and identity tooling, so administrators running JWT validation on Ubuntu LTS should treat the 22.04 fix as a priority rather than a routine refresh. The options-mutation bug is a reminder that library callers must not assume their configuration dictionaries stay untouched between verification calls. Container images and CI base images built from these LTS releases need rebuilding to pick up the patched python3-jwt packages.

Original reference: ubuntu.com →