// Security Advisory Triage

fast-jwt accepts unsigned tokens when key is empty string or null

GitHub advisories — npm · published 2026-10-09 06:13 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDGitHub published CVE-2026-107720 on 8 October 2026, a high-severity vulnerability in fast-jwt. When createVerifier is called with an empty string or null key AND an explicit algorithms array, unsigned JWTs are accepted as valid. First patched version is 6.3.1.
WHY IT MATTERSAn attacker can bypass authentication entirely by sending an unsigned token to any endpoint that uses fast-jwt with this configuration. The vulnerability requires a specific misconfiguration (empty/null key with explicit algorithms), but that pattern exists in real codebases where key loading fails silently or environment variables are unset.
WHAT TO DOGrep your codebase for 'fast-jwt' and 'createVerifier' to confirm exposure. If found, upgrade to 6.3.1 or later. If you cannot upgrade immediately, verify that every createVerifier call either provides a non-empty key or omits the algorithms parameter entirely.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-8wpc-h4q6-8fxv
+summary: fast-jwt: createVerifier accepts unsigned JWTs when key is '' or null and algorithms is explicitly set
+severity: high
+published_at: 2026-10-08T22:02:12Z
+cve_id: CVE-2026-107720
+vulnerabilities[].package.name: fast-jwt
+vulnerabilities[].first_patched_version: 6.3.1
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningJWT verification bypass in widely-used authentication library affects services with fast-jwt in dependencies.
signalsJWT verification bypass — unsigned tokens accepted under specific conditions · Authentication/authorization library in npm ecosystem · High severity rating · First patched version identified (6.3.1) · Known vulnerability class (JWT handling) common in dependency trees
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)