Skip to content
OpenAdvisories

Description

PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0.

Affected products

VendorProductAffectedFixed
jpadilla pyjwt >= 2.13.0, < 2.14.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pyjwt 2.14.0-1 —
Debian 13 pyjwt No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pyjwt 2.13.0-1ubuntu1 USN-8916-2
Ubuntu 26.04 LTS pyjwt 2.10.1-4ubuntu1.2 USN-8916-1
Ubuntu 24.04 LTS pyjwt 2.7.0-1ubuntu0.3 USN-8916-1
Ubuntu 22.04 LTS pyjwt 2.3.0-1ubuntu0.5 USN-8916-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pyjwt 1.7.1-2ubuntu2.1+esm3 USN-8916-1
Ubuntu Pro 18.04 LTS pyjwt 1.5.3+ds1-1ubuntu0.1+esm3 USN-8916-1
Ubuntu Pro 16.04 LTS pyjwt 1.3.0-1ubuntu0.1+esm3 USN-8916-1
ReleasePackageFixed inAdvisory
RHEL 10 fence-virt +55 4.16.0-21.el10_2.7 RHSA-2026:98612, RHSA-2026:94501
RHEL 9 fence-virt +56 4.10.0-110.el9_8.8 RHSA-2026:98503, RHSA-2026:94500
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS fence-virt +55 4.16.0-5.el10_0.14 RHSA-2026:95012
RHEL 9.6 EUS fence-virt +56 4.10.0-86.el9_6.23 RHSA-2026:94523
RHEL 9.4 E4S fence-virt +56 4.10.0-62.el9_4.31 RHSA-2026:94557
RHEL 9.2 E4S fence-virt +56 4.10.0-43.el9_2.27 RHSA-2026:94634
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.6.20261019-1.el9ap RHSA-2026:87004
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.15-1.el9ap RHSA-2026:87004
Red Hat Ansible Automation Platform 2 python3.12-pulpcore 3.49.71-1.el9ap RHSA-2026:87004
Red Hat Ansible Automation Platform 2 python3.12-pyjwt +1 2.14.0-1.el9ap RHSA-2026:87004

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 fence-virt +54 4.16.0-21.el10_2.7 ALSA-2026:94501
AlmaLinux 9 fence-virt +36 4.10.0-110.el9_8.8 ALSA-2026:94500

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 fence-agents 4.16.0-21.el10_2.7 RLSA-2026:94501
Rocky Linux 10 fence-virt +54 4.16.0-34.el10_3.1 RLSA-2026:98612
Rocky Linux 9 fence-agents 4.10.0-110.el9_8.8 RLSA-2026:94500
Rocky Linux 9 fence-virt +55 4.10.0-122.el9_9.1 RLSA-2026:98503
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-PyJWT 2.15.1-1.1 openSUSE-SU-2026:11994-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-jwt +1 2.4.0-1.amzn2023.0.6 ALAS2023-2026-3298

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-jwt 2.15.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 fence-virt +52 4.16.0-21.el10_2.7 ELSA-2026-94501
Oracle Linux 9 fence-virt +54 4.10.0-110.el9_8.8 ELSA-2026-94500

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling datadog-agent-7.77-core-integrations 7.77.3-r26 —
Wolfi rolling datadog-agent-7.78-core-integrations No fix yet —
Wolfi rolling datadog-agent-7.79-core-integrations 7.79.2-r20 —
Wolfi rolling datadog-agent-7.80-core-integrations 7.80.4-r19 —
Wolfi rolling datadog-agent-7.81-core-integrations 7.81.3-r8 —
Wolfi rolling ggshield 1.55.0-r1 —
Wolfi rolling kserve-storage-controller 0.21.0-r1 —
Wolfi rolling open-webui 0.11.4-r1 —
Wolfi rolling py3-cassandra-medusa 0.30.1-r1 —
Wolfi rolling semgrep 1.178.0-r6 —
Wolfi rolling superset-6.1 6.1.0-r10 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyjwt >= 2.13.0, < 2.14.0 2.14.0 GHSA-9j54-fg26-wv3r

Advisories 22

References