CVE-2026-103001: PyJWT - Claims Verification Bypass Due to Options Dict Mutation

pyjwt Updated 01 Oct 2026

Summary

30/09/2026
No i
Moderate
6.5

CVE-2026-103001: PyJWT.decode()/decode_complete() mutates a caller-supplied options dict in place whenever verify_signature is falsy, adding verify_exp/verify_nbf/verify_iat/verify_aud/verify_iss/verify_sub/verify_jti keys directly onto... Affects pyjwt versions >= 2.11.0, <= 2.13.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

PyJWT is a popular Python library used for encoding and decoding JSON Web Tokens (JWT). It allows developers to securely transmit information between parties as a JSON object. The library supports various algorithms for signing tokens and provides options for verifying claims such as expiration, audience, and issuer. However, a recent vulnerability has been identified that affects the integrity of claim verification when reusing mutable options dictionaries.

Vulnerability Detail

The vulnerability arises from the mutation of a caller-supplied options dictionary in the PyJWT.decode() and decode_complete() methods. When the verify_signature option is set to False, the library modifies the options dictionary in place, adding keys for claim verification (like verify_exp, verify_nbf, etc.). If the same options dictionary is reused in subsequent calls with verify_signature set to True, it can lead to silent acceptance of invalid tokens, bypassing important claim checks. This issue is a regression of a previously fixed problem and affects all versions from 2.11.0 to 2.13.0.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid reusing mutable options dictionaries across calls to decode() or decode_complete(). Instead, create a new options dictionary for each call. For example:

import jwt

# Create a new options dictionary for each call
options1 = {"verify_signature": False}
options2 = {"verify_signature": True}

# Decode with the first options
jwt.decode(expired_token, options=options1)

# Decode with the second options
result = jwt.decode(expired_token, secret, algorithms=["HS256"], options=options2)

Conclusion

The vulnerability CVE-2026-103001 in PyJWT poses a significant risk by allowing silent claim verification bypass due to the mutation of options dictionaries. It is crucial to update to the patched version or implement workarounds to mitigate this risk.

See every vulnerability recorded for pyjwt →

Share this vulnerability

FAQ

The vulnerability allows for silent claim verification bypass due to the mutation of a shared options dictionary.

Versions from 2.11.0 to 2.13.0 are affected by this vulnerability.

You can use Vulert's playground to check if your application is affected by this vulnerability without any signup.

The CVSS score of this vulnerability is 6.5, indicating a moderate severity level.

If you cannot update the package, ensure that you do not reuse mutable options dictionaries across calls to avoid the risk of bypassing claim checks.

Related vulnerabilities

Recent vulnerabilities recorded for pyjwt.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback