PyJWT Vulnerabilities — Ubuntu Security Update (USN-9212-1)
USN-9212-1 updates Ubuntu 20.04, Ubuntu 22.04: It was discovered that PyJWT incorrectly handled errors when parsing deeply nested token headers. Apply the update via standard apt tooling.
What this means under a SharedLicense license
The advisory's own severity data peaks at CVSS 5.3 (CWE-674); unpatched Ubuntu 20.04, Ubuntu 22.04 servers remain exposed until updated.
-
USN-9212-1
Publication date
26 November 2026
Overview
Several security issues were fixed in PyJWT.
Releases
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 | ||
References
Frequently Asked Questions
What does USN-9212-1 fix?
Which Ubuntu releases are covered?
How do I apply it?
Check your system for vulnerabilities
Select your product and operating system to see the exact fix commands that apply to you.
Check Your System