Bug 2482753 (CVE-2026-48522)

Summary: CVE-2026-48522 python-pyjwt: PyJWT: Server-Side Request Forgery (SSRF) via uncontrolled URL fetching in PyJWKClient
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alinfoot, anpicker, anthomas, aprice, bbrownin, bdettelb, cahl, cmyers, dfreiber, dnakabaa, doconnor, dranck, drow, dschmidt, dtrifiro, eborisov, ehelms, erezende, ggainey, hasun, ilpinto, jburrell, jfula, jkoehler, jlanda, jmitchel, jowilson, jpasqual, jsamir, juwatts, jwong, kaycoth, kshier, lball, lbrazdil, lcouzens, ljawale, lphiri, ltomasbo, luizcosta, mbarnett, mdellweg, mhayden, mhulan, mminar, msilmser, ngough, nmoumoul, nweather, nyancey, oezr, omaciel, ometelka, osousa, pcreech, ptisnovs, rbiba, rbobbitt, rbryant, rchan, rhel-process-autobot, rjohnson, sdoran, simaishi, smallamp, smcdonal, sskracic, stcannon, syedriko, teagle, tmalecek, tpfromme, veshanka, vkumar, watson-tool-maintainers, weaton, xdharmai, yguenane, ykashtan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in PyJWT, a JSON Web Token implementation in Python. The `PyJWKClient` component, prior to version 2.13.0, directly passes its Uniform Resource Identifier (URI) argument to `urllib.request.urlopen()`. This allows a remote attacker, by influencing the application's `jku` URL ingestion path, to perform Server-Side Request Forgery (SSRF) attacks, potentially leading to the reading of arbitrary local files or broader network access. This vulnerability could also enable attackers to forge tokens that PyJWT verifies as legitimate.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-05-28 16:02:55 UTC
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.