Skip to content
OpenAdvisories
High · 7.4 Public exploit CVE-2026-107720 EUVD-2026-95344GHSA-8wpc-h4q6-8fxv

fast-jwt: createVerifier accepts unsigned JWTs when key is '' or null and algorithms is explicitly set

Published Oct 8, 2026 · Updated Oct 9, 2026 · Assigned by GitHub_M

Description

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.3.1, fast-jwt createVerifier accepts an unsigned JWT when key is an empty string or null and algorithms is a non-empty allowlist. Falsy synchronous keys bypass prepareKeyOrSecret, allowedAlgorithms remains active, hasKey is false, and the empty signature avoids the verifySignature gate. An attacker can therefore submit a token containing arbitrary claims without possessing a signing key, resulting in authentication or authorization bypass. Claim validators still run, and non-empty keys, an empty key without algorithms, and the async key resolver path do not have this behavior. This issue is fixed in version 6.3.1.

Affected products

VendorProductAffectedFixed
nearform fast-jwt < 6.3.1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm fast-jwt < 6.3.1 6.3.1 GHSA-8wpc-h4q6-8fxv

References