> CVE-2026-107722 [CRITICAL]

« BACK_TO_HOME
PUBLISHED
2026-10-08 22:17
MODIFIED
2026-10-08 22:17
CVSS_SCORE V3
9.8
EPSS (Prob. Exploit)
0.27%
Top 81.8%
DATA SOURCES:
NVD đź”— 2026-10-08 FIRST EPSS đź”— 2026-10-19 GITHUB đź”— 2026-10-14 OSV đź”— 2026-10-19

> DESCRIPTION

fast-jwt provides fast JSON Web Token (JWT) implementation. From 6.2.0 until 6.3.0, fast-jwt can misclassify RSA public-key text as an HMAC secret when the key has non-whitespace content before its PEM header. In src/crypto.js, performDetectPublicKeyAlgorithms trims whitespace but publicKeyPemMatcher remains start-anchored, so comments, control characters, zero-width characters, or wrapper text can prevent PEM detection and reach the HMAC fallback. An attacker who knows the public key bytes can sign arbitrary HS256 claims with that public material when HS256 is inferred or allowed, resulting in authentication or authorization bypass. An asymmetric-only algorithm allowlist prevents the attack. This issue is fixed in version 6.3.0.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EXPLOITABILITY
3.9
IMPACT
5.9

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-347

> GITHUB SECURITY ADVISORY

GHSA-ww5h-9m49-7xx4 CRITICAL

fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

AFFECTED PACKAGES:
NPM / fast-jwt
>= 6.2.0, <= 6.2.4
Fixed in: 6.3.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion

AFFECTED PACKAGES:
Unknown / Unknown
5 versions affected
ALIASES:
GHSA-ww5h-9m49-7xx4

> HISTORIQUE DES MODIFICATIONS

Première apparition
08/10/2026 22:17
Source: NVD
Total des modifications: 0 Dernière mise à jour: 1 week ago

> REFERENCES

https://github.com/nearform/fast-jwt/commit/d96bbc6c5336055a6dbfa318fdbab0119726...
https://github.com/nearform/fast-jwt/pull/632
https://github.com/nearform/fast-jwt/releases/tag/v6.3.0
https://github.com/nearform/fast-jwt/security/advisories/GHSA-ww5h-9m49-7xx4
« BACK_TO_HOME