Read the docs
TI-2026-32316 Aliases CVE-2026-44351GHSA-gmvf-9v4p-v8jc

fast-jwt: Empty HMAC secret accepted via async key resolver - JWT auth bypass

Priority MEDIUM 47CWE-1391Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass, Information disclosure
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287 and CWE-326.

Summary

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.4, a critical authentication-bypass vulnerability in fast-jwt's async key-resolver flow allows any unauthenticated attacker to forge arbitrary JWTs that are accepted as authentic. When the application's key resolver returns an empty string (''), for example via the common keys[decoded.header.kid] || '' JWKS-style fallback, fast-jwt converts it to a zero-length Buffer, hands it to crypto.createSecretKey, derives allowedAlgorithms = ['HS256','HS384','HS512'] from it, and then verifies the token's signature against an empty-key HMAC. The attacker simply computes HMAC-SHA256(key='', input='${header}.${payload}'), which Node accepts without complaint — and the verifier returns the attacker-chosen payload (sub, admin, scopes, etc.) as authentic. This vulnerability is fixed in 6.2.4.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0025 16th percentileScored 2026-11-07
Fix Fixed fast-jwt (nearform): 6.2.4fast-jwt (npm): 6.2.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
nearformfast-jwtbefore 6.2.46.2.4Patch availableCNA
—fast-jwt (npm)before 6.2.46.2.4Patch availableGHSA-gmvf-9v4p-v8jc
  • fast-jwt Vendornearform Affected before 6.2.4 Fixed in 6.2.4 Patch available CNA
  • fast-jwt (npm) Vendor— Affected before 6.2.4 Fixed in 6.2.4 Patch available GHSA-gmvf-9v4p-v8jc

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:*:*:*——nearform
  • cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:*:*:* Versions — — ·nearform

Remediation

  • Fix · CNA fast-jwt (nearform) Fixed in 6.2.4
  • Fix · GHSA-gmvf-9v4p-v8jc fast-jwt (npm) Fixed in 6.2.4 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-44351
  2. 2026-10-03 Alias added: GHSA-gmvf-9v4p-v8jc

References

  • TI-2026-69702 Incomplete fix in fast-jwt enables RSA to HS256 algorithm confusion CVSS 3.1CRITICAL 9.8
  • TI-2026-27174 fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key CVSS 3.1CRITICAL 9.1
  • TI-2025-37324 get-jwks poisoned JWKS cache allows post-fetch issuer validation bypass CVSS 3.0CRITICAL 9.4
  • TI-2026-27245 fast-jwt accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation) CVSS 3.1HIGH 7.5
  • TI-2026-69684 Claim validator bypass in fast-jwt when JWT payload is a JSON array CVSS 3.1HIGH 8.1
  • TI-2026-69695 fast-jwt accepts public JWK JSON as HMAC key, enabling token forgery CVSS 3.1HIGH 7.4
See all 15 →

Sources