CVE-2016-7036: python-jose failure to use a constant time comparison for HMAC keys

python-jose Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Critical
9.8

CVE-2016-7036: python-jose failure to use a constant time comparison for HMAC keys. Affects python-jose versions < 1.3.2. Fixed in 1.3.2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-jose is a Python library that provides a way to encode, decode, sign, and verify JSON Web Tokens (JWTs). It is commonly used for implementing authentication and authorization mechanisms in web applications. The library allows developers to work with JWTs easily and securely. However, a vulnerability has been discovered in python-jose versions before 1.3.2, which could have unspecified impacts on the application's security. The vulnerability arises from the failure to use a constant time comparison for HMAC keys.

Vulnerability Detail

The vulnerability in python-jose before version 1.3.2 stems from the lack of constant time comparison for HMAC keys. This can be exploited by attackers to potentially compromise the security of the application. By leveraging this vulnerability, an attacker could perform various malicious activities, such as bypassing authentication mechanisms, forging tokens, or gaining unauthorized access to sensitive data. The exact impact of the vulnerability may vary depending on the specific implementation and usage of python-jose in the application.

How To Fix

Latest published version: 3.5.0 as of 22 Oct 2026

pip install --upgrade "python-jose==3.5.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.2

This is the first release that contains the fix.

pip install --upgrade "python-jose==1.3.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update python-jose to the fixed version as soon as possible to mitigate the risk of exploitation.

Conclusion

In conclusion, python-jose versions before 1.3.2 are vulnerable to a critical security issue that could have unspecified impacts on the application's security. It is crucial to update python-jose to version 1.3.2 or later to mitigate the risk of exploitation. Failure to address this vulnerability could lead to unauthorized access, token forgery, or bypassing authentication mechanisms. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for python-jose →

Share this vulnerability

FAQ

python-jose is a Python library used for working with JSON Web Tokens (JWTs). It provides functionality for encoding, decoding, signing, and verifying JWTs.

The impact of this vulnerability can vary depending on the specific implementation and usage of python-jose. However, it could potentially lead to unauthorized access, token forgery, or bypassing authentication mechanisms.

To fix this vulnerability, it is recommended to upgrade python-jose to version 1.3.2 or later. This version includes the necessary fix to ensure constant time comparison for HMAC keys.

There is no known workaround for this vulnerability. It is crucial to update python-jose to the fixed version as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for python-jose.

How To Fix

Latest published version: 3.5.0 as of 22 Oct 2026

pip install --upgrade "python-jose==3.5.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.2

This is the first release that contains the fix.

pip install --upgrade "python-jose==1.3.2"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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