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

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-08T21:44:06.843Z
- Modified: 2026-10-09T15:17:08.947Z
- Also known as: GHSA-8wpc-h4q6-8fxv
- Weaknesses: CWE-20, CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- nearform fast-jwt: < 6.3.1
- fast-jwt (npm): before 6.3.1

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/nearform/fast-jwt/security/advisories/GHSA-8wpc-h4q6-8fxv> (exploit, web)
- <https://github.com/nearform/fast-jwt/pull/649> (web)
- <https://github.com/nearform/fast-jwt/commit/e22a151e83bf6d5e54e281216982d204d5665534> (web)
- <https://github.com/nearform/fast-jwt/releases/tag/v6.3.1> (web)
- <https://github.com/nearform/fast-jwt> (package)

## Sources

- CVE List: [CVE-2026-107720](https://www.cve.org/CVERecord?id=CVE-2026-107720), CVE Terms of Use, modified 2026-10-09
- GitHub Advisory Database: [GHSA-8wpc-h4q6-8fxv](https://github.com/advisories/GHSA-8wpc-h4q6-8fxv), CC-BY-4.0, modified 2026-10-08
- NVD: [CVE-2026-107720](https://nvd.nist.gov/vuln/detail/CVE-2026-107720), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2026-107720 · Whole record: https://cve.day/CVE-2026-107720.json · Rebuilt by cve.day 2026-11-25T22:59:43.241Z
