USN-9212-1: PyJWT vulnerabilities

Publication date

26 November 2026

Overview

Several security issues were fixed in PyJWT.


Packages

  • pyjwt - Python 3 implementation of JSON Web Token

Details

It was discovered that PyJWT incorrectly handled errors when parsing deeply
nested token headers. An attacker could possibly use this issue to cause
applications using PyJWT to fail unexpectedly, resulting in a denial of
service. (CVE-2026-102265)

It was discovered that PyJWT modified the options mapping supplied by an
application when signature verification was disabled. If an application
reused that mapping for a later call with signature verification enabled,
an attacker could possibly use this issue to bypass token claim checks,
such as expiration. This issue only affected Ubuntu 22.04 LTS.
(CVE-2026-103001)

It was discovered that PyJWT incorrectly handled errors when parsing deeply
nested token headers. An attacker could possibly use this issue to cause
applications using PyJWT to fail unexpectedly, resulting in a denial of
service. (CVE-2026-102265)

It was discovered that PyJWT modified the options mapping supplied by an
application when signature verification was disabled. If an application
reused that mapping for a later call with signature verification enabled,
an attacker could possibly use this issue to bypass token claim checks,
such as expiration. This issue only affected Ubuntu 22.04 LTS.
(CVE-2026-103001)

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.5
24.04 LTS noble python3-jwt –  2.7.0-1ubuntu0.6
22.04 LTS jammy python3-jwt –  2.3.0-1ubuntu0.8

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 ›