hermes-agent · PyJWT: Unauthenticated DoS via unbounded Base64URL decoding of unused payload segment in b64=false detached JWS
Affects hermes-agentSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 2026.7.1 when convenient.
Data as of 30 Oct 2026, 09:02 UTC
- Patch
- Available – fixed in 2026.7.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 28 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 29 Oct 2026.
What to do
Upgrade hermes-agent to 2026.7.1.
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 patch is available in PyJWT version 2.12.1 and later that fixes this issue by reordering the decode logic to avoid unnecessary Base64URL decoding of the unused payload segment when 'b64' is false. Users should upgrade to version 2.12.1 or later to remediate this vulnerability. If upgrading immediately is not possible, enforcing strict request body size limits upstream (e.g., in proxies or web servers) can help mitigate the amplification effect by bounding the maximum payload size accepted.
Description
PyJWT versions from 2.4.0 up to but not including 2.12.1 contain a vulnerability in the handling of detached JWS tokens with the unencoded-payload option (b64=false). The library performs Base64URL decoding of the payload segment before enforcing detached payload rules, causing unnecessary CPU and memory usage even if the signature is invalid. This allows an unauthenticated remote attacker to cause a denial of service (DoS) by sending tokens with large payload segments, amplifying resource consumption on the server.