Skip to main content
CVE-2026-48522VulnerabilityPublished Updated

Pyjwt: Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python

Affects pyjwtSource GCVE Database

0
Compare
Authoritative record:CVE-2026-48522· Medium 4.2

Not known to be exploited · CVSS 4.2 Medium · fixed in 2.3.0-1ubuntu0.4 : update pyjwt when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
4.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.3.0-1ubuntu0.4, 2.7.0-1ubuntu0.2, 2.10.1-4ubuntu1.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu pyjwt to 2.3.0-1ubuntu0.4 (package) or 2.7.0-1ubuntu0.2 (package) or 2.10.1-4ubuntu1.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSpyjwtpkg:deb/ubuntu/pyjwt?arch=source&distro=resoluteOther threatsAffected
  • <2.10.1-4ubuntu1.1
Fixed in
  • 2.10.1-4ubuntu1.1
Ubuntu 25.10pyjwtpkg:deb/ubuntu/pyjwt?arch=source&distro=questingOther threatsAffected
  • =2.10.1-2
  • =2.10.1-2ubuntu0.1
Fixed in–
Ubuntu 24.04 LTSpyjwtpkg:deb/ubuntu/pyjwt?arch=source&distro=nobleOther threatsAffected
  • <2.7.0-1ubuntu0.2
Fixed in
  • 2.7.0-1ubuntu0.2
Ubuntu 22.04 LTSpyjwtpkg:deb/ubuntu/pyjwt?arch=source&distro=jammyOther threatsAffected
  • <2.3.0-1ubuntu0.4
Fixed in
  • 2.3.0-1ubuntu0.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…