Skip to content
ÁgilNews Belém, Pará PT-BR
Security

Ubuntu patches PyJWT in three LTS releases. Here’s which package to update

A token parsing flaw affects all three releases. Ubuntu 22.04 LTS also gets a fix for applications that could accept expired tokens.

AI-generated illustration of three translucent credentials beneath a lit arch. The top credential bears a fingerprint and a check mark.

On November 26, Canonical released fixes for PyJWT, a library that Python applications use to read and validate access tokens. A standard system update delivers the fix to users of Ubuntu’s python3-jwt package on 22.04, 24.04 and 26.04 LTS. Applications that install their own copy of the library need a separate check.

Why the Ubuntu release matters

On all three releases, the library could fail while reading a malformed token header. An API receiving such a token could return an internal server error for that request. The flaw, tracked as CVE-2026-102265, affects service availability.

Ubuntu 22.04 LTS gets a second fix, for CVE-2026-103001. Applications that reused the same validation settings could verify a token’s signature and still overlook its expiration date. Canonical assigns both flaws medium priority. Its notice describes the risks and does not report any ongoing attacks.

How to check the update

If you installed the library from Ubuntu’s repositories, check the full version number of python3-jwt. Canonical lists the following fixed package versions for each release.

  • Ubuntu 22.04 LTS — 2.3.0-1ubuntu0.8
  • Ubuntu 24.04 LTS — 2.7.0-1ubuntu0.6
  • Ubuntu 26.04 LTS — 2.10.1-4ubuntu1.5

If the application runs in a Python virtual environment with its own copy installed via pip, check PyJWT inside that environment. By default, a virtual environment keeps its libraries separate from those installed by the operating system. The server may have received the Ubuntu fix while the application still uses its earlier dependency.

Cover illustration generated with AI for Ágil News.

Sources