CVE-2026-48522
python-pyjwt: PyJWT: Server-Side Request Forgery (SSRF) via uncontrolled URL fetching in PyJWKClient
Overview
Description
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.
Source: OX vulnerability database
Severity
4.2 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness: CWE-441, CWE-918
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | pyjwt | >=2.0.0, <2.13.0 | 2.13.0 |
| Seal PyPI | pyjwt | >=2.11.0+sp0, <2.11.0+sp2>=2.2.0+sp0, <2.2.0+sp999>=2.3.0+sp0, <2.3.0+sp999>=2.9.0+sp0, <2.9.0+sp999 | 2.11.0+sp22.2.0+sp9992.3.0+sp9992.9.0+sp999 |
| Seal PyPI | seal-pyjwt | >=2.11.0+sp1, <2.11.0+sp2>=2.2.0+sp1z1, <2.2.0+sp999>=2.3.0+sp1, <2.3.0+sp999>=2.9.0+sp1, <2.9.0+sp999 | 2.11.0+sp22.2.0+sp9992.3.0+sp9992.9.0+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 100 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | python-jwt | 0:2.13.0-1.azl3 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | python3-pyjwt | 2.8.0-5.ph5 |
Red Hat 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-pyjwt +1 | affected |
| 7 (satellite:el8) | python-pyjwt +1 | affected |
| 9 | fence-agents +56 | affected |
SUSE Linux Enterprise 5 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python3-pyjwt | 2.4.0-150200.3.14.1 | SUSE-SU-2026:2627-1 |
| 15.4 | python311-pyjwt | 2.8.0-150400.8.13.1 | SUSE-SU-2026:2626-1 |
| 15.5 | python3-pyjwt | 2.4.0-150200.3.14.1 | SUSE-SU-2026:2627-1 |
| 15.5 | python311-pyjwt | 2.8.0-150400.8.13.1 | SUSE-SU-2026:2626-1 |
| 15.6 | python3-pyjwt | 2.4.0-150200.3.14.1 | SUSE-SU-2026:2627-1 |
| 15.6 | python311-pyjwt | 2.8.0-150400.8.13.1 | SUSE-SU-2026:2626-1 |
3 more rows
SUSE Linux Enterprise Micro 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.5 | python3-pyjwt | 2.4.0-150200.3.14.1 | SUSE-SU-2026:2627-1 |
| 6.0 | python311-pyjwt | 2.9.0-3.1 | SUSE-SU-2026:22238-1 |
| 6.1 | python311-pyjwt | 2.12.1-slfo.1.1_2.1 | SUSE-SU-2026:22138-1 |
| 6.2 | python313-pyjwt | 2.12.1-160000.2.1 | SUSE-SU-2026:22220-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python3-jwt +1 | 2.4.0-1.amzn2023.0.5 |
chainguard 1 release · 52 packages
| Release | Package | Fixed in |
|---|---|---|
| kserve | 0.20.0-r7 | |
| ggshield | 1.52.2-r1 | |
| litellm | 1.89.0-r4 | |
| openstack-placement-2025-1-fips | 13.0.0_git20260617-r1 | |
| openstack-placement-2025-1 | 13.0.0_git20260617-r2 | |
| openstack-placement-2025-2-fips | 14.0.0_git20260309-r1 |
46 more rows
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | pyjwt | affected |
| 13 | pyjwt | affected |
| 14 | pyjwt | 2.13.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pyjwt | 2.13.0-1 |
minimos 1 release · 11 packages
| Release | Package | Fixed in |
|---|---|---|
| kserve | 0.20.0-r0 | |
| vllm-cu130 | 0.21.0-r2 | |
| vllm-cu129 | 0.21.0-r3 | |
| cassandra-medusa | 0.30.0-r0 | |
| label-studio | 1.23.1-r0 | |
| acapy-agent-1-6 | 1.6.1-r0 |
5 more rows
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python311-pyjwt +2 | 2.13.0-1.1 | openSUSE-SU-2026:11024-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pyjwt | 2.12.1-160000.2.1 | openSUSE-SU-2026:21095-1 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | pyjwt | 2.3.0-1ubuntu0.4 |
| 24.04 | pyjwt | 2.7.0-1ubuntu0.2 |
| 26.04 | pyjwt | 2.10.1-4ubuntu1.1 |
wolfi 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| kserve | 0.20.0-r7 | |
| ggshield | 1.52.2-r1 | |
| superset-6-0 | 6.0.0-r17 | |
| superset-6-1 | 6.1.0-r2 | |
| datadog-agent-7-73 | 7.73.3-r23 | |
| datadog-agent-7-77 | 7.77.3-r16 |
3 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-48522
- github.com https://github.com/github/advisory-database/pull/8521
- github.com https://github.com/jpadilla/pyjwt
- github.com https://github.com/jpadilla/pyjwt/commit/95791b1759b8aa4f2203575d344d5c78564cdc81
- github.com https://github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-175.yaml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-48522
- ubuntu.com https://ubuntu.com/security/notices/USN-8823-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-48522
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.