USN-9212-1: PyJWT vulnerabilities
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)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.10.1-4ubuntu1.5 - Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.7.0-1ubuntu0.6 - Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.3.0-1ubuntu0.8
Event History
Frequently Asked Questions
Which applications are exposed to the denial-of-service issue?
Applications using PyJWT may be exposed if they parse attacker-controlled tokens with deeply nested headers. An attacker could cause the application to fail unexpectedly.
When can the claim-check bypass occur?
The bypass requires an application to disable signature verification while supplying an options mapping, then reuse that same mapping for a later verification-enabled call. In that sequence, token claim checks such as expiration may be bypassed.
Which systems are affected by the signature-verification options issue?
The options-mapping issue, CVE-2026-103001, only affected Ubuntu 22.04 LTS. The provided data does not limit the deeply nested header denial-of-service issue to that release.