Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or influence validly-signed token
-
DeliveryCraft JSON array as JWT payload
-
ExploitSubmit to fast-jwt createVerifier
-
ExecutionDecoder accepts array, claim validators silently skipped
-
ImpactBypass expiry/issuer/audience/revocation controls
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Specified type validation
|
| Exploitation Conditions | Requires an application using fast-jwt createVerifier at version <=6.2.4, AND an attacker able to produce or influence a validly-signed token (signature verification is NOT bypassed, so this presumes access to the signing secret/key or a token-issuance path that permits controlling the payload structure). The specific trigger is a payload serialized as a JSON array rather than a JSON object. Exploitation is BLOCKED if the opt-in requiredClaims option is configured, because that check throws on missing claims rather than silently continuing; it is also moot for deployments already on 6.3.0. The bypass does not require any special claim values - merely an array-typed payload. |
| Impact | This is a genuine high-impact authentication-logic flaw, but its real-world risk is gated by a non-trivial precondition that the raw CVSS 8.1 understates. The CVSS:3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) scores confidentiality and integrity as High because a successful bypass defeats expiry, issuer, audience, subject, revocation (jti), and replay (nonce) protections. However, the description and GHSA advisory are explicit that signature verification itself is NOT bypassed - the attacker must be able to produce or influence a validly-signed token whose payload is a JSON array. That means practical exploitation depends on either possession of the signing key/secret or a token-issuance flow that lets the attacker control the payload structure, which is a meaningful limiting factor the PR:L/AC:L metrics arguably undersell. No EPSS score and no CISA KEV status were provided in the input, so there is no evidence of active exploitation or mass scanning; a PoC is published in the vendor advisory, which raises the likelihood of opportunistic use but does not equal in-the-wild exploitation. Net: treat as a priority patch for any service that uses fast-jwt (<=6.2.4) in a context where tokens can be attacker-influenced or where symmetric secrets may be shared, but it is not a blind unauthenticated full-takeover bug. The opt-in requiredClaims option, if configured, already blocks the bypass. |
| Exploit ScenarioDerived | An attacker who can obtain or influence a validly-signed JWT crafts a token whose payload is a JSON array (e.g. ["attacker","role:admin"]) instead of an object, then presents it to an application using fast-jwt's createVerifier. Because the decoder treats the array as a valid object and every claim validator short-circuits on the missing named property, the verifier returns success without enforcing expiry, issuer, audience, subject, revocation, or replay checks. A working PoC is published in the GHSA advisory and the fix test suite. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
Signed JSON Web Tokens whose payload is a JSON array silently bypass every configured claim validator in the npm package fast-jwt through version 6.2.4, so the verifier returns success while enforcing only the signature and skipping exp, nbf, iss, aud, sub, jti and nonce checks. The flaw is exploitable by an authenticated attacker (CVSS PR:L) who can produce or influence a validly-signed token - signature verification itself is not broken, so the attacker must have access to the signing key or to a token-issuance path that lets them control the payload structure - and the true risk is gated by that precondition and by AC:H rather than the raw 8.1 base score. Publicly available exploit code exists in the vendor advisory, but there is no confirmed active exploitation (not in CISA KEV) and exploitation is blocked entirely in deployments that enable the opt-in requiredClaims option or that have upgraded to 6.3.0.
RemediationAI
Upgrade to fast-jwt 6.3.0 or later, the vendor-released patch that adds the missing Array.isArray(payload) guard in src/decoder.js (see GHSA-5hjw-83fp-phq9, PR https://github.com/nearform/fast-jwt/pull/639 and commit 86e83efd8b5244f50859532d99244f0a9a9a4368). If an immediate upgrade is not possible, enable the opt-in requiredClaims option in createVerifier - it throws on missing claims instead of silently continuing, which blocks this bypass - but note the trade-off that it will reject otherwise-legitimate tokens that omit any listed claim, so align the claim list with what your issuer actually mints. As a complementary control, have the calling application assert that the decoded payload is a plain, non-array object before trusting any claims, and reject on failure; this duplicates the patched check at the application layer at the cost of added code paths that must be kept in sync. Because signature verification is not bypassed, the exploit requires the signing key or control over the token-issuance path, so rotating signing secrets, shortening token lifetimes, and locking down which services may mint tokens reduce exposure - though rotation only invalidates existing tokens and does not fix the decoding flaw. Deployments that can neither patch nor enable requiredClaims should treat all claim-based authorization decisions as unenforced and add external validation of issuer, audience and expiry.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Root cause is CWE-1287 (Improper Validation of Specified Type of Input) inside fast-jwt's token decoder. In JavaScript, typeof [] = 'object', so the payload type guard in src/decoder.js (line 65, if (!payload || typeof payload ! 'object')) accepts a JSON array even though the adjacent header guard correctly adds an Array.isArray(header) check. RFC 7519 §7.2 step 10 requires the JWT Claims Set to be a JSON object, so the library is accepting a structurally invalid token. The verifier's validator loop (src/verifier.js around lines 304-323) then reads each claim and short-circuits with an in test - 'exp' in [], 'iss' in [], 'aud' in [], 'sub' in [], 'jti' in [], 'nonce' in [] are all false for an array, which has only numeric indices and length - so every validator hits continue and is silently skipped rather than raising an error. The result is a validated-looking payload that never had expiry, issuer (allowedIss), audience (allowedAud), subject (allowedSub), revocation or replay protections applied. The opt-in requiredClaims path uses the same in test but throws instead of continuing, which is why it defeats the bypass. Notably, the earlier fix for GHSA-gm45-q3v2-6cf8 (CVE-2025-30144), which handled a single claim value being an array, lives inside the validator loop body and is never reached for this whole-payload-array variant.
Know when Fast Jwt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Signature is still enforced, so the attacker needs ability to influence a validly-signed token (PR:L) and a specific array-payload condition (AC:H); impact is full auth-control bypass affecting C and I, not availability.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.3.0, fast-jwt createVerifier accepts a validly signed JWT whose payload is a JSON array because src/decoder.js checks that the payload is an object but does not reject arrays. The claim validator loop then finds no named exp, nbf, iss, aud, sub, jti, or nonce properties and silently skips those configured checks, returning the array as a successfully verified payload. An attacker who can produce or influence a validly signed token may bypass expiry, issuer, audience, subject, revocation, and replay protections. The opt-in requiredClaims option can block missing claims, and signature verification itself is not bypassed. This issue is fixed in version 6.3.0.
Technical POC Analysis
CWE-1287 (Improper Validation of Specified Type of Input).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
fast-jwt, an npm library used to verify JSON Web Tokens, can silently bypass all configured claim validators in versions through 6.2.4 when a signed token's payload is a JSON array, causing applications to accept tokens without enforcing expiration, issuer, audience, subject, nonce, or related checks. This creates a potential authentication-integrity risk for services that rely on fast-jwt for access control, but exploitation requires an authenticated attacker with signing-key access or control over a token-issuance path, and there is no confirmed active exploitation; publicly available exploit code exists.
No vendor-released patch identified at time of analysis per patch status; however, provided context indicates upgrading to fast-jwt 6.3.0 blocks exploitation. Apply vendor patch if 6.3.0 is available; otherwise enable requiredClaims, reject non-object JWT payloads, enforce claim validation in application code, and restrict signing-key/token-issuance access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Authentication and authorization bypass in fast-jwt 6.2.0 through 6.2.4 (npm, NearForm) lets a remote, unauthenticated a
Authentication and authorization bypass in fast-jwt 6.3.0 and earlier lets a remote, unauthenticated attacker submit a f
fast-jwt through 6.2.4 silently accepts expired and not-yet-active JSON Web Tokens when a verifier is constructed with c
fast-jwt provides fast JSON Web Token (JWT) implementation. Rated medium severity (CVSS 5.9), this vulnerability is remo
Signature-verification bypass in NearForm fast-jwt 6.2.4 lets a remote, unauthenticated attacker forge HS256-signed JWTs
Denial of service in fast-jwt 5.0.0 through 6.2.0 allows authenticated remote attackers with user interaction to cause s
fast-jwt before 6.2.1 fails to properly validate JWTs when RegExp modifiers with stateful behavior (/g for global matchi
Expired JSON Web Tokens can keep being accepted by fast-jwt through version 6.3.3 when the verifier is created with cach
EUVD-2026-95348
GHSA-5hjw-83fp-phq9
NVD
CVE.org
EPSS
VulDB
Exploit-DB