Description
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.
Published: 2026-10-08
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Claim validation bypass in JWT verification
Action: Apply Patch
AI Analysis

Impact

fast-jwt fails to reject JSON array payloads during token verification because the decoder only checks for an object. As a result, the claim‑validation loop sees no standard claim fields such as exp, nbf, iss, aud, sub, jti, or nonce and silently continues, marking the token as valid. An attacker who can generate or influence a signed JWT can therefore obtain a verified payload without the token’s expiry, issuer, audience, subject, revocation, or replay protections. This allows the token to be used at will, undermining the integrity guarantees that JWTs are intended to provide.

Affected Systems

The vulnerability affects installations of the nearform:fast-jwt library that are prior to version 6.3.0. Any application that imports this library and accepts user‑supplied JWTs is potentially impacted. Clients relying on 6.3.0 or later are not affected.

Risk and Exploitability

With a CVSS score of 8.1, the flaw is classified as high severity. The EPSS score is not available, and the vulnerability is not currently listed in the KEV catalog. The likely attack vector is the injection or replacement of a signed JWT accepted by an application that uses fast‑jwt for authentication, allowing remote bypass of token validation. The vulnerability does not affect signature verification itself, but it removes critical claim checks that normally enforce session expiration, issuer validation, and replay protection. If exploited, an attacker can gain unauthorized access or persist credentials beyond intended lifetimes, potentially leading to prolonged compromise of systems that rely on the library for security decisions.

Generated by OpenCVE AI on October 8, 2026 at 23:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to fast‑jwt version 6.3.0 or later
  • Set the requiredClaims option to enforce presence of critical claims if an upgrade is not immediately possible
  • Validate that the payload is an object after verification to avoid accepting array payloads

Generated by OpenCVE AI on October 8, 2026 at 23:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5hjw-83fp-phq9 fast-jwt : Silent claim-validator bypass when JWT payload is a JSON array
History

Wed, 14 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 09 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Nearform
Nearform fast-jwt
Vendors & Products Nearform
Nearform fast-jwt

Thu, 08 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
Description 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.
Title fast-jwt : Silent claim-validator bypass when JWT payload is a JSON array
Weaknesses CWE-1287
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Nearform Fast-jwt
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-14T01:25:44.088Z

Reserved: 2026-10-08T17:21:52.976Z

Link: CVE-2026-107723

cve-icon Vulnrichment

Updated: 2026-10-14T01:25:38.547Z

cve-icon NVD

Status : Deferred

Published: 2026-10-08T22:17:28.623

Modified: 2026-10-14T02:16:57.877

Link: CVE-2026-107723

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T00:00:09Z

Weaknesses
  • CWE-1287

    Improper Validation of Specified Type of Input