Skip to main content
CVE-2026-102268VulnerabilityPublished Updated

hermes-agent · PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion

Affects hermes-agentSource GCVE Database

0
Authoritative record:CVE-2026-102268· Critical 9.1

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

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewhermes-agentpkg:brew/hermes-agentOther threatsAffected
  • >=0.21.6 <0.22.4
  • >=2026.4.30 <=2026.9.24
Fixed in
  • 0.22.4

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

Community reviews

Loading reviews…