THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-jwrc-g2q2-pq5p (medium) — PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

[GHSA] GHSA-jwrc-g2q2-pq5p (medium) — PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

highgithub_advisoriesPublished 2026-09-30

GHSA-jwrc-g2q2-pq5p Severity: medium CVE: CVE-2026-102270

PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

### Summary There is a Re-DoS vulnerability in the `is_pem_format` function which results in a intesive CPU usage if an attacker is been able to provide a custom certificate.

### Details The problem is that the lazy quantifier `.+?` will always first try to match as l

Indicators of compromise

Original source: https://github.com/advisories/GHSA-jwrc-g2q2-pq5p