Skip to main content
VulnerabilityPublished

CVE-2026-102274: jpadilla pyjwt · Improper Handling of Exceptional Conditions

Affects jpadilla pyjwtSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.9 Medium : upgrade to 2.14.0 when convenient.

Data as of 12 Nov 2026, 23:24 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.14.0
CVSS:3.1/AV:N/AC:H/PR:N/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. Weaponized: 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 13 Nov 2026.

What to do

Upgrade jpadilla pyjwt to 2.14.0.

Affected software

ProductAffectedFixed in
jpadillapyjwtAffected
  • >=2.9.0 <2.14.0
Fixed in
  • 2.14.0
PyPIpyjwtpkg:pypi/pyjwtOther threatsAffected
  • >=2.9.0 <2.14.0
Fixed in
  • 2.14.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The suggested remediation is to modify PyJWK.__init__ to catch the built-in ValueError raised during RSA key recovery and re-raise it as InvalidKeyError, a subclass of PyJWTError. This change allows the existing per-key error handling in PyJWKSet to skip malformed keys and continue processing the rest of the set. If you cannot patch yet, users should validate keys individually before adding them to a trusted set to avoid this issue.

Description

PyJWT versions 2.9.0 through 2.13.0 contain a vulnerability where a malformed RSA JWK in a JWK Set causes the entire set parsing to abort due to an uncaught ValueError. This happens because the ValueError raised by the cryptography library during RSA key recovery is not caught by PyJWT's exception handling, leading to denial of service in key processing.

References

Community reviews

Loading reviews…