Approved changes feed: RSS · Atom

cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*

part: a version: * update: *

VendorNearform (7d4e3848-5450-5868-b418-5365abc4686a)
ProductFast Jwt (496d484f-428d-5330-b2e9-14f878b69b1a)
Edition*
Language*
Software edition*
Target softwarenode.js
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/nearform/fast-jwt purl2cpe 2026-06-01 10:10:57.739994
pkg:npm/fast-jwt purl2cpe 2026-06-01 10:10:57.739996

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-35042 vulnerable 2026-06-08 07:59:13.436725 fast-jwt accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)
HIGH (7.5)
fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, fast-jwt does not validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that fast-jwt does not understand, the library accepts the token instead of rejecting it. This violates the MUST requirement in the RFC.
Published: 2026-04-06T17:02:12.180Z
Updated: 2026-04-07T15:59:49.872Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35041 vulnerable 2026-06-08 07:59:13.436317 ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification
MEDIUM (4.2)
fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, a denial-of-service condition exists in fast-jwt when the allowedAud verification option is configured using a regular expression. Because the aud claim is attacker-controlled and the library evaluates it against the supplied RegExp, a crafted JWT can trigger catastrophic backtracking in the JavaScript regex engine, resulting in significant CPU consumption during verification. This vulnerability is fixed in 6.2.1.
Published: 2026-04-09T14:55:22.807Z
Updated: 2026-04-09T16:15:25.352Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35040 vulnerable 2026-06-08 07:59:13.436041 fast-jwt: Stateful RegExp (/g or /y) causes non-deterministic allowed-claim validation (logical DoS)
MEDIUM (5.3)
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.
Published: 2026-04-09T14:52:56.436Z
Updated: 2026-04-13T20:03:41.746Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-35039 vulnerable 2026-06-08 07:59:13.435663 fast-jwt Affected by Cache Confusion via cacheKeyBuilder Collisions Can Return Claims From a Different Token (Identity/Authorization Mixup)
CRITICAL (9.1)
fast-jwt provides fast JSON Web Token (JWT) implementation. From 0.0.1 to before 6.2.0, setting up a custom cacheKeyBuilder method which does not properly create unique keys for different tokens can lead to cache collisions. This could cause tokens to be mis-identified during the verification process leading to valid tokens returning claims from different valid tokens and users being mis-identified as other users based on the wrong token. Version 6.2.0 contains a patch.
Published: 2026-04-06T16:59:43.124Z
Updated: 2026-05-13T15:12:43.989Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-34950 vulnerable 2026-06-08 07:59:13.363223 fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key
CRITICAL (9.1)
fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, the publicKeyPemMatcher regex in fast-jwt/src/crypto.js uses a ^ anchor that is defeated by any leading whitespace in the key string, re-enabling the exact same JWT algorithm confusion attack that CVE-2023-48223 patched.
Published: 2026-04-06T15:54:03.765Z
Updated: 2026-04-06T18:43:16.088Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2023-48223 vulnerable 2026-06-08 06:14:26.179634 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.