Advisory

USN-8916-1

Also known as: CVE-2026-102266, CVE-2026-102267, CVE-2026-102268, CVE-2026-102271, CVE-2026-102272, CVE-2026-102273

Summary

pyjwt vulnerabilities

Details

YuSung Han discovered that PyJWT did not properly validate certain JWK keys
when performing HMAC verification. An attacker could possibly use this
issue to forge authentication tokens. This issue only affected Ubuntu
26.04 LTS. (CVE-2026-102266)

Rohan Das discovered that PyJWT incorrectly handled redirects when fetching
key sets. A remote attacker could possibly use this issue to cause PyJWT
to disclose sensitive information. This issue only affected Ubuntu 22.04
LTS, Ubuntu 24.04 LTS, Ubuntu 26.04 LTS. (CVE-2026-102267)

It was discovered that PyJWT incorrectly recognized certain PEM
representations. An attacker who knew the public key could possibly use
this issue to forge authentication tokens. This issue only affected Ubuntu
18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu
26.04 LTS. (CVE-2026-102268)

Nuno Lopes discovered that PyJWT incorrectly handled DER public keys when
performing HMAC verification. An attacker who knew the public key could
possibly use this issue to forge authentication tokens. (CVE-2026-102271)

It was discovered that PyJWT did not properly handle certain JWK keys
prefixed with a byte-order mark. An attacker who knew the public key could
possibly use this issue to forge authentication tokens. (CVE-2026-102272)

Charles Vosburgh discovered that PyJWT incorrectly handled certain JWK
containers when performing HMAC verification. An attacker who knew the
public key could possibly use this issue to forge authentication tokens.
(CVE-2026-102273)

Severity

Not rated by the source.

Dates

Published
2026-10-13 10:09 UTC
Modified
2026-10-27 11:56 UTC

Affected packages and fixes

pyjwt

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.3.0-1ubuntu0.5 (ecosystem)

Fixed versions

2.3.0-1ubuntu0.5

Fix

  • Fixed version 2.3.0-1ubuntu0.5
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

pyjwt

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.7.0-1ubuntu0.3 (ecosystem)

Fixed versions

2.7.0-1ubuntu0.3

Fix

  • Fixed version 2.7.0-1ubuntu0.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

pyjwt

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.10.1-4ubuntu1.2 (ecosystem)

Fixed versions

2.10.1-4ubuntu1.2

Fix

  • Fixed version 2.10.1-4ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences