Skip to main content
VulnerabilityPublished Updated

CVE-2026-102270: PyJWT · ReDoS vulnerability when calling the `is_pem_format` function

Affects hermes-agentSource GCVE Database

0
Authoritative record:CVE-2026-102270· Medium 4.4

Not known to be exploited · CVSS 4.4 Medium : upgrade to 0.22.4 when convenient.

Data as of 27 Oct 2026, 21:00 UTC

CVSS 3.1 base score
4.4Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.22.4
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H

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

A fix is available and included in PyJWT version 2.14.0 released on 2026-09-11. Users should upgrade to PyJWT 2.14.0 or later to remediate this vulnerability. No additional mitigation steps are required once the patched version is deployed.

Description

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the PyJWT library's is_pem_format function. The vulnerability arises from a regex pattern that exhibits quadratic time complexity when processing malformed PEM-like input consisting of repeated '-----BEGIN CERTIFICATE-----' lines without a matching '---- END' line. This can cause excessive CPU usage, potentially leading to resource exhaustion and service unavailability. The issue affects PyJWT versions >=0.21.6 and <0.22.4. A fix was released in PyJWT 2.14.0 on 2026-09-11.

References

Community reviews

Loading reviews…