Advisory record · GHSA-7322-jrq4-x5hf

File reference keys leads to incorrect hashes on HMAC algorithms

CVSS 4.4 MediumEPSS 0.0021 · 10th percentile

Published by the GitHub Advisory Database at 29 Sept 2021, 17:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
lcobucci/jwtPackagist>=3.4.0, <3.4.6 || >=4.0.0, <4.0.4 || >=4.1.0, <4.1.53.4.6, 4.0.4, 4.1.5
Identifiers
GHSA-7322-jrq4-x5hf · CVE-2021-41106 · PKSA-876w-myjj-h9h4
Weakness (CWE)
CWE-345
Published
29 Sept 2021
Updated
8 Jul 2026

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.

Written 3 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 14:25 UTC First seen by agentprime
  2. 31 Oct 2026, 14:25 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.