# CVE-2026-44351: fast-jwt: Empty HMAC secret accepted via async key resolver - JWT auth bypass

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/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.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T22:26:37.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-gmvf-9v4p-v8jc
- Weaknesses: CWE-287, CWE-326, CWE-1391
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/nearform/fast-jwt/security/advisories/GHSA-gmvf-9v4p-v8jc> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44351> (advisory)
- <https://github.com/nearform/fast-jwt> (package)

## Sources

- CVE List: [CVE-2026-44351](https://www.cve.org/CVERecord?id=CVE-2026-44351), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-gmvf-9v4p-v8jc](https://github.com/advisories/GHSA-gmvf-9v4p-v8jc), CC-BY-4.0, modified 2026-05-14
- NVD: [CVE-2026-44351](https://nvd.nist.gov/vuln/detail/CVE-2026-44351), Public domain, modified 2026-10-26

---

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