CVE-2026-48522Pyjwt Project Pyjwt
Medium 4.2 No auth needed
Follow: this CVE · Pyjwt Project · Pyjwt Project Pyjwt We alert you by email or Slack (account required).
- Priority
- 40
- CVSS 3.1
- 4.2
- EPSS
- —
- Auth required
- No
- Published
- May 28, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler, and DataHandler. There is currently no documented option to restrict which schemes PyJWKClient will fetch. If an application's jku URL ingestion path accepts attacker-influenced URLs (e.g., from JWT header, configuration file, OAuth flow parameter), the attacker can cause PyJWKClient to read arbitrary local files via file:// (SSRF on local filesystem), cause PyJWKClient to attempt FTP / data-URI fetches (broader SSRF surface), or forge tokens that PyJWT verifies as valid. The library does not directly return non-HTTP(S) URI contents to the attacker; the chained "plant a JWKS to forge tokens" scenario described in the original report requires additional application-layer flaws (attacker write access to a filesystem path, untrusted jku derivation) that this fix does not address. This vulnerability is fixed in 2.13.0.
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 |
≥ 2.0.0 < 2.13.0 |
2.13.0 |
pip install "pyjwt>=2.13.0" |
| PyPI | pyjwt |
< 2.13.0 |
2.13.0 |
pip install "pyjwt>=2.13.0" |
Per OSV / GitHub Advisories (GHSA-993g-76c3-p5m4, PYSEC-2026-175). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pyjwt_project | pyjwt | < 2.13.0 |
Official advisories
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:2627-1 · Jun 25, 2026 High
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:2626-1 · Jun 25, 2026 High
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:22170-1 · Jun 19, 2026 High
Also: SUSE (+5)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Mitigation Vendor Advisory