CVE-2017-11424Pyjwt Project Pyjwt
High 7.5 No auth needed
Follow: this CVE · Pyjwt Project · Pyjwt Project Pyjwt We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pyjwt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| pyjwt_project | pyjwt | ≤ 1.5.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.debian.org Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory