Denial of Service Vulnerability in python-jwcrypto: CVE-2023-6681

python-jwcrypto Updated 02 Oct 2025

Summary

12/02/2024
N/A
No i
Medium
5.3

CVE-2023-6681: A vulnerability was found in JWCrypto. Affects python-jwcrypto versions < 8ae0df6538b8d8aa52e82105ec5132d289ad9ddd. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

python-jwcrypto is a Python library that provides tools for working with JSON Web Tokens (JWT) and JSON Web Encryption (JWE). It is widely used for secure data transmission in web applications. The library allows developers to create, sign, and verify tokens, ensuring data integrity and confidentiality. However, it has been found to be vulnerable to a denial of service (DoS) attack, which can lead to increased resource consumption and potential security risks.

Vulnerability Detail

CVE-2023-6681 is a vulnerability in the python-jwcrypto package that allows attackers to execute denial of service (DoS) attacks. This flaw can make password brute-force and dictionary attacks more resource-intensive, leading to significant computational consumption. The vulnerability originates from the way the library handles certain cryptographic operations, which can be exploited to exhaust system resources, thereby causing service disruptions.

How To Fix

No fixed version is published for this vulnerability.

To fix the vulnerability, users should upgrade the python-jwcrypto package to version 1.5.4-1 or later. This can be done by running the following command in your terminal:

sudo apt-get update

sudo apt-get install python-jwcrypto=1.5.4-1

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

Workaround

If immediate upgrading is not possible, consider implementing rate limiting on your application to mitigate the impact of potential DoS attacks. Additionally, monitor your application for unusual activity that may indicate an ongoing attack.

Conclusion

The CVE-2023-6681 vulnerability in python-jwcrypto poses a significant risk of denial of service attacks. Users are strongly advised to upgrade to the latest version to mitigate this risk. For those unable to upgrade immediately, implementing workarounds such as rate limiting can help reduce the potential impact.

See every vulnerability recorded for python-jwcrypto →

Share this vulnerability

FAQ

CVE-2023-6681 is a vulnerability in the python-jwcrypto library that allows for denial of service attacks, potentially leading to increased resource consumption.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability can lead to significant computational resource consumption, resulting in service disruptions and making brute-force attacks more feasible.

Yes, upgrading to python-jwcrypto version 1.5.4-1 or later will patch the vulnerability.

Implement rate limiting and monitor your application for unusual activity as a temporary measure until you can upgrade.

Related vulnerabilities

Recent vulnerabilities recorded for python-jwcrypto.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

To fix the vulnerability, users should upgrade the python-jwcrypto package to version 1.5.4-1 or later. This can be done by running the following command in your terminal:

sudo apt-get update

sudo apt-get install python-jwcrypto=1.5.4-1

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.