Skip to main content

fast-jwt EUVDEUVD-2026-95348

| CVE-2026-107723 HIGH
Improper Validation of Specified Type of Input (CWE-1287)
2026-10-08 GitHub_M GHSA-5hjw-83fp-phq9
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain or influence validly-signed token
  2. Delivery
    Craft JSON array as JWT payload
  3. Exploit
    Submit to fast-jwt createVerifier
  4. Execution
    Decoder accepts array, claim validators silently skipped
  5. Impact
    Bypass 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

fast-jwt < 6.3.0

Affected Packages

npm fast-jwt fix: 6.3.0

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

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Oct 08, 2026 - 23:02 EUVD
CVE Published
Oct 08, 2026 - 21:51 cve.org
HIGH 8.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
popular Node.js JWT library; underpins @fastify/jwt, but not ubiquitous
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy