CVE-2026-48522
Last modified
CVE-2026-48522 is a medium-severity vulnerability rated 4.2/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pyjwt Project | Pyjwt | < 2.13.0 |
References
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4Exploit, Mitigation, Vendor Advisory
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4Exploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-48522?
How severe is CVE-2026-48522?
How do I fix CVE-2026-48522?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-48516MessagePack for C# is a MessagePack serializer for C#. Prior…7.5
- CVE-2026-48517MessagePack for C# is a MessagePack serializer for C#. Prior…7.5
- CVE-2026-48518MultiJuicer is used to run separate Juice Shop instances on …4.3
- CVE-2026-48519Langflow is a tool for building and deploying AI-powered age…9.6
- CVE-2026-4852The Image Source Control Lite – Show Image Credits and Capti…6.4
- CVE-2026-48520Langflow is a tool for building and deploying AI-powered age…6.1
- CVE-2026-48523PyJWT is a JSON Web Token implementation in Python. From 2.9…5.4
- CVE-2026-48524PyJWT is a JSON Web Token implementation in Python. Prior to…3.7
- CVE-2026-48525PyJWT is a JSON Web Token implementation in Python. From 2.8…5.3
- CVE-2026-48526PyJWT is a JSON Web Token implementation in Python. Prior to…7.4
- CVE-2026-48527HAX CMS helps manage microsite universe with PHP or NodeJs b…8.7
- CVE-2026-48529GitHub MCP Server is GitHub's official MCP Server. From 0.22…6
Are you affected by CVE-2026-48522?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
