Nearform fast-jwt
fast-jwt: Empty HMAC secret accepted via async key resolver - JWT auth bypass
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 6.2.4
Fixed in 6.2.4
Mitigation
Upgrade fast-jwt to 6.2.4 or later.
References
- Vendor advisory github.com/nearform/fast-jwt/security/advisori…
Timeline
Days relative to CVE publicationFirst public PoC 124 days after publication; not in CISA KEV. First PoC: isaca0315/CVE-2026-44351-poc (created 15 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| isaca0315/CVE-2026-44351-poc | 15 Sep 2026 +124 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /admin
- Key headers
Authorization: Bearer {var}Authorization: Bearer A.B.C`Authorization: Bearer {var}`- Ports
- 3000
- Seen in
- 1 repo: isaca0315/CVE-2026-44351-poc
- Evidence
- isaca0315/CVE-2026-44351-poc/README.md:147 isaca0315/CVE-2026-44351-poc/README.md:161 isaca0315/CVE-2026-44351-poc/README.md:162 isaca0315/CVE-2026-44351-poc/README.md:163
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/admin(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-44351 nearform fast-jwt exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin"; http.header; content:"Authorization: Bearer "; nocase; http.header; content:"Authorization: Bearer A.B.C`"; nocase; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-44351; classtype:web-application-attack; sid:9786550; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: nearform fast-jwt exploit attempt (CVE-2026-44351)
id: gg-pocmon-cve-2026-44351-9786550
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44351. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44351
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/admin'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44351