CVE-2026-102266: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
Affects hermes-agentSource GCVE Database
Not known to be exploited · CVSS 7.4 High : upgrade to 0.22.4 soon.
Data as of 27 Oct 2026, 21:01 UTC
- Patch
- Available – fixed in 0.22.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade hermes-agent to 0.22.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewhermes-agentpkg:brew/hermes-agentOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fixed version of PyJWT is available in 0.22.4 that corrects the empty-key validation inconsistency. Users should upgrade to PyJWT 0.22.4 or later. Additionally, ensure that no empty HMAC keys are configured in JWK or JWKS sources. If upgrading is not immediately possible, avoid using empty symmetric keys and validate key material before use. No other specific mitigations are indicated.
Description
PyJWT versions prior to 0.22.4 contain a vulnerability where empty HMAC keys supplied via oct JWKs are accepted during HS256 token verification, bypassing the library's empty-key validation. This allows an attacker to forge valid HS256 JWTs if the application uses an empty symmetric JWK key, potentially leading to unauthorized token acceptance.
References
- github.com/jpadilla/pyjwt/security/advisories/GHSA-9j54-fg26-wv3r (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-102266 (opens in a new tab)
- github.com/jpadilla/pyjwt/commit/f91ed44dd65baaf457f4b3353ed35e98a753934c (opens in a new tab)
- github.com/jpadilla/pyjwt (opens in a new tab)
- github.com/jpadilla/pyjwt/releases/tag/2.14.0 (opens in a new tab)