hermes-agent · PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion
Affects hermes-agentSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical : upgrade to 0.22.4 as a priority.
Data as of 27 Oct 2026, 21:00 UTC
- Patch
- Available – fixed in 0.22.4
CVSS:3.1/AV:N/AC:L/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
Upgrade PyJWT to version 0.22.4 or later, where the asymmetric key detection has been corrected to handle these PEM variants properly. Avoid mixing HMAC and asymmetric algorithms in the allowed algorithms list for JWT verification. If upgrading is not immediately possible, ensure that PEM keys are normalized to a format recognized by PyJWT's is_pem_format() function to prevent bypass.
Description
PyJWT versions before 0.22.4 contain a vulnerability where malformed PEM public keys with whitespace or unusual line endings bypass the asymmetric key detection. This causes the public key to be used as an HMAC secret, allowing an attacker who knows the public key to forge valid HS256 tokens when the verification algorithm list mixes HMAC and asymmetric algorithms.
References
- github.com/jpadilla/pyjwt/security/advisories/GHSA-ffc3-869f-jxw9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-102268 (opens in a new tab)
- github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07 (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)