Quick answers
- Is CVE-2026-48522 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-48522 being exploited in the wild.
- How severe is CVE-2026-48522?
- Medium severity, with a CVSS score of 4.2, published 28 May 2026.
- Which products and versions are affected?
- Jpadilla PyJWT < 2.13.0, <= 2.12.1; pyjwt (PyPI) ECOSYSTEM:introduced=0,fixed=2.13.0, ECOSYSTEM:introduced=2.0.0,fixed=2.13.0.
- Is there a fix for CVE-2026-48522?
- Yes. pyjwt (PyPI): upgrade to 2.13.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-48522 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-48522?
- Check whether you run Jpadilla PyJWT or pyjwt (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- pyjwt (PyPI): upgrade to 2.13.0 or later
pip install "pyjwt>=2.13.0"
Technical details
The PyJWKClient class in PyJWT passes the 'uri' argument directly to Python's urllib.request.urlopen() without validating the protocol scheme. By default, this allows the use of FileHandler, FTPHandler, and DataHandler. An attacker who can influence the 'jku' (JWK Set URL) parameter in a JWT header can trigger an SSRF to read local files or interact with internal network services. If the attacker also has write access to a location reachable via these schemes, they can provide a malicious JWK set to forge tokens that the library will verify as authentic. The fix introduces an 'allowed_schemes' parameter defaulting to ('https', 'http').
Affected products
- jpadilla PyJWT <= 2.12.1
Identifiers
- CVE-2026-48522
- GHSA-993g-76c3-p5m4
- PYSEC-2026-175
Timeline
- 2026-05-06: other: Vulnerability verified by researcher
- 2026-05-21: disclosed: Advisory published on GitHub
- 2026-06-15: advisory: Advisory updated with CVE-2026-48522