CVE-2026-102265: PyJWT · Uncaught RecursionError in jwt.decode() on deeply nested token header
Affects hermes-agentSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.22.4 when convenient.
Data as of 27 Oct 2026, 21:01 UTC
- Patch
- Available – fixed in 0.22.4
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 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 2.14.0 or later, which includes a fix that catches RecursionError during JWT header parsing and raises DecodeError instead. This prevents unhandled exceptions and ensures that malformed tokens result in proper authentication errors. Until upgrading, consider implementing additional input validation or limiting token size and nesting depth at the application level if feasible.
Description
PyJWT versions prior to 2.14.0 contain a vulnerability where deeply nested JSON arrays in the JWT header cause a RecursionError during decoding. This error is not caught by the library's usual exception handling, resulting in an unhandled exception that leads to HTTP 500 server errors and full tracebacks logged. The issue allows an unauthenticated attacker to cause a denial of service on JWT validation endpoints by sending crafted tokens with excessively nested headers. The flaw is fixed in PyJWT 2.14.0 by catching RecursionError and converting it to a DecodeError.
References
- github.com/jpadilla/pyjwt/security/advisories/GHSA-8wjv-2p76-3863 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-102265 (opens in a new tab)
- github.com/jpadilla/pyjwt/commit/06573692ebcdec8831c3927513b3e87c31fbbb62 (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)