{"id":"CVE-2026-107720","published":"2026-10-08T21:44:06Z","modified":"2026-10-09T14:32:14Z","title":"fast-jwt: createVerifier accepts unsigned JWTs when key is '' or null and algorithms is explicitly set","vendor":"nearform","product":"fast-jwt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00332,"percentile":0.18824,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-8wpc-h4q6-8fxv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nearform/fast-jwt/pull/649","tags":["x_refsource_MISC"]},{"url":"https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534","tags":["x_refsource_MISC"]},{"url":"https://github.com/nearform/fast-jwt/releases/tag/v6.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":3.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.18}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-09","earliestUrl":"https://github.com/federiconbaez/cortex9-fastjwt-empty-key-unsigned-accept-model","repos":[{"name":"federiconbaez/cortex9-fastjwt-empty-key-unsigned-accept-model","url":"https://github.com/federiconbaez/cortex9-fastjwt-empty-key-unsigned-accept-model","stars":0,"created":"2026-11-09"}]},"first":{"date":"2026-11-09","source":"PoC-in-GitHub","url":"https://github.com/federiconbaez/cortex9-fastjwt-empty-key-unsigned-accept-model"},"provenance":"source"},"vendorSlug":"nearform","affectedVersions":[{"vendor":"nearform","product":"fast-jwt","versions":["< 6.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-09T14:31:56.862139Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-jwt","vulnerableRanges":["<6.3.1"],"patched":["6.3.1"],"from":["GHSA-8wpc-h4q6-8fxv"],"provenance":"source"}],"summary":{"text":"The fast-jwt JSON Web Token library has a flaw in its createVerifier function, in versions before 6.3.1, where unsigned tokens are accepted when the key is an empty string or null and an algorithms allowlist is set. An attacker who can send a token to a verifier in this configuration (network access, with no authentication or user interaction required, and the high attack complexity noted in the vector) can submit a forged token with arbitrary claims and bypass authentication or authorization, though claim validators still run.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:24Z"},"euvd":{"id":"EUVD-2026-95344","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nearform-fast-jwt-cve-2026-35040","parents":[{"from":"CVE-2026-35040","to":"CVE-2026-107720","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/verifier.js"],"commits":["https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534","https://github.com/nearform/fast-jwt/commit/18d25904e4617e8753526d1b3ab5a2cccdea726a"],"basis":"shared function","functions":["createVerifier"]}]},{"from":"CVE-2026-35041","to":"CVE-2026-107720","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/verifier.js"],"commits":["https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534","https://github.com/nearform/fast-jwt/commit/b0be0ca161593836a153d5180ca5358ad9b5de94"],"basis":"shared function","functions":["createVerifier"]}]}],"children":[{"from":"CVE-2026-107720","to":"CVE-2026-107721","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/verifier.js"],"commits":["https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534","https://github.com/nearform/fast-jwt/commit/c0fb5b88b4c88ff2bdd194ca2c713599ad9e38b6"],"basis":"shared function","functions":["createVerifier"]}]}],"packageHistory":[{"cve":"CVE-2026-107722","published":"2026-10-08","fixed":"6.3.0","kev":false},{"cve":"CVE-2026-107723","published":"2026-10-08","fixed":"6.3.0","kev":false},{"cve":"CVE-2026-107724","published":"2026-10-08","fixed":"6.3.0","kev":false},{"cve":"CVE-2026-107720","published":"2026-10-08","fixed":"6.3.1","kev":false},{"cve":"CVE-2026-107719","published":"2026-10-08","fixed":"6.3.4","kev":false,"link":{"from":"CVE-2026-107720","to":"CVE-2026-107719","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-jwt","fromFixed":"6.3.1","toFixed":"6.3.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["src/verifier.js"],"commits":["https://github.com/nearform/fast-jwt/commit/fc1ddbbe5ce38066ba2cea0b0ce0233932757167","https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534"],"basis":"shared file"}]}}],"package":"npm:fast-jwt"}}