USN-9177-1: PyJWT vulnerability

Publication date

20 November 2026

Overview

A security issue was fixed in PyJWT.


Packages

  • pyjwt - Python 3 implementation of JSON Web Token

Details

It was discovered that PyJWT incorrectly accepted non-canonical encodings
of token signature segments. An attacker could possibly use this issue to
bypass token revocation checks.

It was discovered that PyJWT incorrectly accepted non-canonical encodings
of token signature segments. An attacker could possibly use this issue to
bypass token revocation checks.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package 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

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›