Vulnérabilité dans pyjwt (CVE-2026-48523)
Résumé
Vulnérabilité dans pyjwt (CVE-2026-48523). Risque d'opérations non autorisées ou de divulgation. Exploitable via PyJWK. Atténuation : mise à jour vers 2.13.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
[!NOTE]
Scored assuming a deployment where algorithm policy functions as an authentication/authorization boundary. In deployments where the algorithm policy enforces crypto agility only, the practical confidentiality impact is lower and the issue is closer to an integrity-of-policy-enforcement bug.
PyJWT 2.9.0 through 2.12.1 allows a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list, but signature verification is performed with the algorithm bound to the PyJWK object instead of the header algorithm. An attacker who controls a registered JWK/JWKS private key can sign with a disallowed algorithm, advertise an allowed algorithm in the JWT header, and still be accepted. The issue affects the documented PyJWKClient.get_signing_key_from_jwt(...) flow.
Summary
PyJWT's PyJWK verification path allows a verifier-side algorithm allow-list bypass.
In affected versions, when a JWT is decoded with a PyJWK object, PyJWT verifies that the header alg string is present in the caller's algorithms=[...] list, but it does not actually use the header algorithm to verify the signature. Instead, it verifies with the algorithm already bound to the PyJWK object.
This lets an attacker who controls a registered JWK/JWKS private key sign with a disallowed algorithm and have the token accepted as long as the JWT header ad…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-48523 a été découverte dans pyjwt.
Des attaquants peuvent cibler un point d'entrée spécifique comme PyJWK à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 5.4/10.
Action : mettez à jour pyjwt vers 2.13.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « pyjwt CVE-2026-48523 » sur le site de l'éditeur.
CVE-2026-48523 (pyjwt) — CWE-347 / CVSS v3 5.4
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : PyJWK / alg / algorithms / PyJWKClient
Correctif : 2.13.0 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-347) affecte pyjwt. Les attaquants atteignent le code vulnérable via PyJWK.
Consultez l'avis de l'éditeur pour les versions affectées de pyjwt. Surface d'attaque : PyJWK / alg / algorithms / PyJWKClient.
Gravité : Moyenne (CVSS 5.4/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.13.0.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'pyjwt' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
pyjwtを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade pyjwt to 2.13.0ステージング環境で 2.13.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- BellSoft Alpaquita BELL-CVE-2026-48523 py3-jwt Corrigé dans: 2.13.0-r0
- Debian DEBIAN-CVE-2026-48523 pyjwt
- Ubuntu UBUNTU-CVE-2026-48523 pyjwt
Références
- advisory nvd.nist.gov
- exploit github.com
- package github.com
- web github.com
- web github.com