Ubuntu releases security updates for PyJWT to address token revocation bypass
A vulnerability in PyJWT allowed non-canonical encodings in token signatures, potentially enabling attackers to bypass token revocation checks.
Summary
Ubuntu has issued security updates for the python3-jwt package to address CVE-2026-102269. The vulnerability stems from how the PyJWT library processes token signature segments, specifically its acceptance of non-canonical encodings.
This flaw affects users of Ubuntu 22.04 LTS, 24.04 LTS, and 26.04 LTS. If exploited, an attacker could potentially bypass security mechanisms intended to revoke tokens, posing a risk to applications relying on JSON Web Tokens for authentication and authorization.
Vulnerability details and patched versions
- Defect Class: The issue involves the incorrect acceptance of non-canonical encodings within token signature segments.
- Security Impact: Successful exploitation could allow an attacker to bypass token revocation checks, undermining the integrity of the authentication lifecycle.
- Affected Packages: The fix is applied to the python3-jwt package across multiple Ubuntu LTS releases, including versions 2.10.1-4ubuntu1.4 (26.04), 2.7.0-1ubuntu0.5 (24.04), and 2.3.0-1ubuntu0.7 (22.04).
- CVE Identifier: The vulnerability is tracked under CVE-2026-102269.
Why it matters
Since PyJWT is a widely used Python implementation for JSON Web Tokens, this update is critical for developers and system administrators running web services or distributed systems on Ubuntu. Failure to patch could allow unauthorized access via revoked credentials in environments where JWTs are used for identity management.
What to do
- Update the python3-jwt package on Ubuntu 22.04 LTS, 24.04 LTS, or 26.04 LTS.
- Install version 2.3.0-1ubuntu0.7 for Ubuntu 22.04 LTS, 2.7.0-1ubuntu0.5 for Ubuntu 24.04 LTS, or 2.10.1-4ubuntu1.4 for Ubuntu 26.04 LTS.
Original reference: ubuntu.com →