1. Archivio CVE
  2. 2026
  3. CVE-2026-48522

CVE-2026-48522

4.2 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N 4.2 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
pyjwt project pyjwt < 2.13.0 –
Tutte le 24 vulnerabilità di Pyjwt Project Pyjwt

Tipo di vulnerabilità

CWE-441 Unintended Proxy or Intermediary

The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere.

Impatto sui sistemi

AmbitoImpatto
Non ripudio, Controllo degli accessi Ottenere privilegi o assumere un’altra identità, Nascondere le proprie attività, Eseguire codice o comandi non autorizzati, Aggirare i meccanismi di protezione

Come si previene

Architettura e progettazione Enforce the use of strong mutual authentication mechanism between the two parties.
Architettura e progettazione Whenever a product is an intermediary or proxy for transactions between two other components, the proxy core should not drop the identity of the initiator of the transaction. The immutability of the identity of the initiator must be maintained and should be forwarded all the way to the target.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 209 CVE di tipo CWE-441, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org