USN-9177-1: Ubuntu patches PyJWT, token revocation can be bypassed
Ubuntu releases patch for python3-jwt: non-canonical signature encodings allowed JWT token revocation checks to be circumvented.
UptimeMag editorial team · 20 November 2026 · 2 min read

Ubuntu released security advisory USN-9177-1 on 20 November 2026, addressing a vulnerability in the python3-jwt package, the Python implementation of JSON Web Tokens used by many applications for managing sessions and API authentication.
The issue
According to the official advisory, PyJWT was found to incorrectly accept non-canonical encodings of token signature segments, and an attacker could potentially exploit this vulnerability to circumvent token revocation checks. The reference is CVE-2026-102269.
This is not a flaw that allows forging false signatures: according to the technical details published on GitHub Advisory Database, PyJWT's decoder accepts these non-canonical characters, producing the same signature bytes for multiple serialised representations. In practice, a valid token can be resubmitted with a slightly different encoding of the same signature segment: the decoded bytes and authenticated claims remain identical, but the serialised string changes. If an application maintains a denylist of revoked tokens based on the exact token string (rather than the decoded bytes), an already-revoked token can pass the check with this encoding variant.
Who needs to update
The package is affected on the releases listed in the table below, with corrected versions released by Ubuntu:
| Ubuntu Release | Package | Corrected version |
|---|---|---|
| 26.04 LTS (Resolute) | python3-jwt | 2.10.1-4ubuntu1.4 |
| 24.04 LTS (Noble) | python3-jwt | 2.7.0-1ubuntu0.5 |
| 22.04 LTS (Jammy) | python3-jwt | 2.3.0-1ubuntu0.7 |
A standard system update applies all necessary changes, so running apt update && apt upgrade on machines with the package installed is sufficient.
Context
The upstream bug dates to PyJWT versions before 2.14.0: the original report was classified as a moderate severity issue, with CVSS 3.1 score of 4.8 and attributed to CWE-180, error in validation and canonicalisation operation ordering. The corrected version on PyPI, PyJWT 2.14.0, was already available from 11 September 2026, over two months before the Ubuntu patch.
Those managing Python backends with JWT token revocation based on string denylists (rather than canonical decoding before comparison) should review their application logic beyond simply updating the system package.
Written with the help of artificial intelligence and checked by the editors (EU AI Act, art. 50).