> CVE-2026-35040 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-04-09 16:16
MODIFIED
2026-04-09 16:16
CVSS_SCORE V3
5.3
EPSS (Prob. Exploit)
0.63%
Top 50.5%
DATA SOURCES:
NVD đź”— 2026-04-09 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-10-28

> DESCRIPTION

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp objects in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options in verify functions can cause certain unintended behaviours. This is because some modifiers are stateful and will cause failures in every second verification attempt regardless of the validity of the token provided. Such modifiers are /g (global matching) and /y (sticky matching). This does NOT allow invalid tokens to be accepted, only for valid tokens to be improperly rejected in some configurations. Instead it causes 50% of valid authentication requests to fail in an alternating pattern. This vulnerability is fixed in 6.2.1.

> 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:N/I:N/A:L
EXPLOITABILITY
3.9
IMPACT
1.4

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-440 CWE-697

> CWE DETAILED DESCRIPTIONS

CWE-440: Expected Behavior Violation - A feature, API, or function does not perform according to its specification. | CWE-697: Incorrect Comparison - The product compares two entities in a security-relevant context, but the comparison is incorrect.

> GITHUB SECURITY ADVISORY

GHSA-3j8v-cgw4-2g6q MODERATE

fast-jwt: Stateful RegExp (/g or /y) causes non-deterministic allowed-claim validation (logical DoS)

AFFECTED PACKAGES:
NPM / fast-jwt
< 6.2.1
Fixed in: 6.2.1

> HISTORIQUE DES MODIFICATIONS

Première apparition
09/04/2026 16:16
Source: NVD
📊 ENRICHISSEMENT 01/05/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-440: Expected Behavior Violation - A feature, API, or function does not perform according to its specification. | CWE-697: Incorrect Comparison - The product compares two entities in a security-re...
Total des modifications: 1 Dernière mise à jour: 6 months ago

> REFERENCES

https://github.com/nearform/fast-jwt/commit/18d25904e4617e8753526d1b3ab5a2cccdea...
https://github.com/nearform/fast-jwt/pull/593
https://github.com/nearform/fast-jwt/releases/tag/v6.2.1
https://github.com/nearform/fast-jwt/security/advisories/GHSA-3j8v-cgw4-2g6q
« BACK_TO_HOME