CVE-2026-48522: PyJWKClient: missing scheme allowlist enables SSRF + token forgery via file://, ftp://, data: schemes
Vulnerability summary
CVE-2026-48522 is a medium (CVSS 4.2) Unintended Proxy or Intermediary vulnerability in jpadilla pyjwt. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 12.3% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 10Timeline
- 28-05-2026PublishedVulnerability first disclosed.
- 02-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.22% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPyjwt
Maturity: poc
Weaknesses
CWE · root cause- CWE-441Unintended Proxy or IntermediaryThe product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere.
- CWE-918Server-Side Request ForgeryThe web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard65 products
- airflow-2< 2.11.2-r25
- airflow-core-2< 2.11.2-r10
- airflow-core-3< 3.2.2-r5
- airflow-postgres-fips-3< 3.2.2-r3
- awx< 24.6.1-r41
Wolfi17 products
- datadog-agent-7.72-core-integrationsAll versions (No fix recorded)
- datadog-agent-7.73-core-integrations< 7.73.3-r23
- datadog-agent-7.74-core-integrations< 7.74.1-r24
- datadog-agent-7.75-core-integrationsAll versions (No fix recorded)
- datadog-agent-7.76All versions (No fix recorded)
Debian1 product
- pyjwtAll versions (No fix recorded) | < 2.13.0-1
Jpadilla1 product
- pyjwt< 2.13.0
Pyjwt_project1 product
- pyjwt< 2.13.0
PyPI1 product
- pyjwt≥ 2.0.0, < 2.13.0 | < 2.13.0
Ubuntu1 product
- pyjwt< 2.3.0-1ubuntu0.4 | < 2.7.0-1ubuntu0.2 | All versions (No fix recorded) | < 2.10.1-4ubuntu1.1
7 vendors · 87 products
References
11 links- github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4X Refsource CONFIRMWEBEVIDENCEREPORTAdvisoryExploitMitigationVendor Advisory
- github.com/jpadilla/pyjwtPACKAGE