1. Accueil
  2. Vulnérabilités
  3. CVE-2023-48238

CVE-2023-48238

joaquimserafim/json-web-token is a javascript library use to interact with JSON Web Tokens (JWT) which are a…

Publiée le 17 nov. 2023 · modifiée le 17 juin 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 42/100

Résumé

joaquimserafim/json-web-token is a javascript library use to interact with JSON Web Tokens (JWT) which are a compact URL-safe means of representing claims to be transferred between two parties. Versions prior to 4.0.0 are vulnerable to a JWT algorithm confusion attack. On line 86 of the 'index.js' file, the algorithm to use for verifying the signature of the JWT token is taken from the JWT token, which at that point is still unverified and thus shouldn't be trusted. To exploit this vulnerability, an attacker needs to craft a malicious JWT token containing the HS256 algorithm, signed with the public RSA key of the victim application. This attack will only work against this library is the RS256 algorithm is in use, however it is a best practice to use that algorithm. Version 4.0.0 fixes the issue.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Joaquimserafim (1 ligne(s))
Joaquimserafim
ProduitVersionsCorrigé dansSource
Json web token avant 3.1.1 (exclu) — NVD
npm (1 ligne(s))
npm
ProduitVersionsCorrigé dansSource
json-web-token avant 4.0.0 (exclu) 4.0.0 GitHub Advisory

Correctif

Mise à jour — npm/json-web-token 4.0.0source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
NVD
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (CVSS 3.1, NVD)
Faiblesse
CWE-345 · Autre (CWE-345)

Comment sont obtenues et calculées ces données