VDB

CVE-2017-11424

CVE-2017-11424 PUBLISHED CVSS 7.5 HIGH

PyJWT vulnerable to key confusion attacks

Reported by duo · Published August 24, 2017

pyjwt is fixed in 1.5.1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pyjwtPyPI1.5.1
pyjwtpyjwt_project1.5.0

Risk scores

CVSS 3.0
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
n/an/an/a
PyPIPyJWT0
n/an/a*

Timeline

  • Aug 24, 2017 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Jul 16, 2025 CVE Updated
  • Mar 5, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 5, 2026 Security Advisory (3 in total, the first dated here)
  • Oct 4, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-11424
vulnetix vdb fixes CVE-2017-11424

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-11424/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›