6.5Medium

CVE-2026-103001PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse

jpadilla pyjwt Published: (1 month ago)

Description

PyJWT is a Python implementation of JSON Web Token standards. From 2.11.0 through 2.13.0, PyJWT's PyJWT._merge_options() method can modify a caller-supplied mutable options mapping when verify_signature is false. If an application reuses that same mapping for a later decode() or decode_complete() call and changes verify_signature to true, the mapping can retain false values for expiration, not-before, issued-at, audience, issuer, subject, and JWT ID checks. A signed token with invalid registered claims can then be accepted without disabling signature verification, but applications that create a fresh options mapping for each call are not affected.

Weakness (CWE): CWE-471

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
jpadilla pyjwt >= 2.11.0, <= 2.13.0
pyjwt project pyjwt 2.11.0 – < 2.13.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:* ≥ 2.11.0 < 2.13.0