- Accueil
- Vulnérabilités
- 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…
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))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Json web token | avant 3.1.1 (exclu) |
— | NVD |
npm (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| 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
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-4xw9-cx39-r355 — json-web-token library is vulnerable to a JWT algorithm confusion attack 17 nov. 2023
Références
- https://github.com/joaquimserafim/json-web-token/commit/b6e56b1346f48432d29133c76b65222ad93956b7WEB
- https://github.com/joaquimserafim/json-web-token/security/advisories/GHSA-4xw9-cx39-r355WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-48238ADVISORY
- https://github.com/joaquimserafim/json-web-tokenPACKAGE
- https://github.com/joaquimserafim/json-web-token/blob/acf6a462471e1b14187eb77414e9161b8b7bff7e/index.js#L86WEB
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)