Live threats

All CVEs / Pyjwt Project

CVE-2017-11424Pyjwt Project Pyjwt

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
No
Published
Aug 24, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

In PyJWT 1.5.0 and below the `invalid_strings` check in `HMACAlgorithm.prepare_key` does not account for all PEM encoded public keys. Specifically, the PKCS1 PEM encoded format would be allowed because it is prefaced with the string `-----BEGIN RSA PUBLIC KEY-----` which is not accounted for. This enables symmetric/asymmetric key confusion attacks against users using the PKCS1 PEM encoded public keys, which would allow an attacker to craft JWTs from scratch.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyjwt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pyjwt < 1.5.1 1.5.1 pip install "pyjwt>=1.5.1"
PyPI pyjwt < 1.5.1 1.5.1 pip install "pyjwt>=1.5.1"

Per OSV / GitHub Advisories (GHSA-r9jw-mwhq-wp62, PYSEC-2017-24). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pyjwt_projectpyjwt≤ 1.5.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.