CVE-2026-44351

Source
https://cve.org/CVERecord?id=CVE-2026-44351
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-44351.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-44351
Aliases
Published
2026-05-13T19:12:33.347Z
Modified
2026-07-08T08:13:28.338162784Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
fast-jwt: Empty HMAC secret accepted via async key resolver - JWT auth bypass
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44351.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-1391",
        "CWE-287",
        "CWE-326"
    ]
}
References

Affected packages

Git / github.com/nearform/fast-jwt

Affected ranges

Type
GIT
Repo
https://github.com/nearform/fast-jwt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "6.2.4"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.1.0
v0.1.1
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.4.1
v0.4.2
v0.5.0
v0.5.1
v1.*
v1.0.0
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.2.0
v1.3.0
v1.3.2
v1.4.0
v1.4.1
v1.5.0
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.6.0
v1.6.1
v1.7.0
v1.7.1
v1.7.2
v2.*
v2.0.0
v6.*
v6.1.0
v6.2.0
v6.2.1
v6.2.2
v6.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-44351.json"