Back to CVE catalog
CVE-2026-48522

Unrestricted URI schemes in PyJWKClient leading to SSRF

jpadilla pyjwt

At a glance

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 description · CVE List / CNA

System impact

Attack complexityHigh
ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS summary v3.1

4.2Medium
Published:
Updated:
EPSS:
0.214%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:jpadillapyjwtAffected versions:
< 2.13.0
Vendor:Red HatMigration Toolkit for Applications 8Affected versions:Source does not specify a version range
Vendor:Red HatOpenShift LightspeedAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat AI Inference ServerAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat Ansible Automation Platform 2Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 10Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 9Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux AI (RHEL AI) 3Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Hardened ImagesAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat OpenShift AI (RHOAI)Affected versions:Source does not specify a version range

1–10 of 45 · Page 1 of 5

CVSS scores and metrics5
GitHub_M · CVE List / CNA (cna)Primary4.2 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
[email protected] · NVD (Secondary)4.2 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
CVE-2026-48522 · OSV (source-vector)4.2 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Red Hat · Red Hat VEX (adp)4.2 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
SUSE · SUSE VEX (adp)4.8 / 10MediumCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
None
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

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

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories8

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences