Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
lcobucci/jwt versions 3.4.0 before 3.4.6, 4.0.0 before 4.0.4, and 4.1.0 before 4.1.5 are affected when HMAC algorithms (HS256, HS384, HS512) are used with LocalFileReference as the key. In that case the file path, not the file contents, is used as the hashing key, so tokens are issued and validated with a predictable key. The source gives few details on exploitation conditions. Upgrade to 3.4.6, 4.0.4, or 4.1.5. As a workaround, create keys with InMemory instead of LocalFileReference.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 4.4 | Medium | 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0021, the 10th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:25 UTC First seen by agentprime
- 31 Oct 2026, 14:25 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-7322-jrq4-x5hf
- OSV: GHSA-7322-jrq4-x5hf
- github.com/lcobucci/jwt/security/advisories/GHSA-7322-jrq4-x5hf
- nvd.nist.gov/vuln/detail/CVE-2021-41106
- github.com/lcobucci/jwt/commit/8175de5b841fbe3fd97d2d49b3fc15c4ecb39a73
- github.com/lcobucci/jwt/commit/c45bb8b961a8e742d8f6b88ef5ff1bd5cca5d01c
- github.com/FriendsOfPHP/security-advisories/blob/master/lcobucci/jwt/CVE-2021-41106.yaml
- github.com/lcobucci/jwt