Critical Memory Exhaustion Vulnerability in python3-jwcrypto Package

python3-jwcrypto Updated 26 May 2026

Summary

19/05/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:19197: Low: python-jwcrypto security update. Affects python3-jwcrypto versions < 1.5.6-3.el9_8. Fixed in 1.5.6-3.el9_8. 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

The python3-jwcrypto package is a library for creating and verifying JSON Web Tokens (JWTs) using JWE (JSON Web Encryption). It is built on top of Python's cryptography library and provides developers with a straightforward interface for handling secure token operations. However, like any software, it is susceptible to vulnerabilities that can compromise its functionality and security.

Vulnerability Detail

The vulnerability identified as CVE-2026-39373 in the python3-jwcrypto package allows for memory exhaustion through crafted compressed JWE tokens. This means that an attacker could potentially send specially designed tokens that consume excessive memory resources, leading to denial of service conditions. The issue arises from improper handling of compressed tokens, which can overwhelm the system's memory allocation, causing applications to crash or become unresponsive.

How To Fix

Minimum fixed version

1.5.6-3.el9_8

This is the first release that contains the fix.

sudo dnf update python3-jwcrypto

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

Workaround

As a temporary workaround, you can implement input validation to reject any JWE tokens that do not conform to expected formats or sizes. This can help mitigate the risk of memory exhaustion until the package is updated. Additionally, monitoring system memory usage can help identify potential exploitation attempts.

Conclusion

The python3-jwcrypto package has a critical vulnerability that can lead to memory exhaustion through crafted JWE tokens. It is crucial to update to the latest patched version to secure applications against potential denial of service attacks. Implementing workarounds can provide temporary relief while awaiting updates.

See every vulnerability recorded for python3-jwcrypto →

Share this vulnerability

FAQ

The vulnerability allows for memory exhaustion via crafted compressed JWE tokens, which can lead to denial of service.

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

Update the python3-jwcrypto package to version 1.5.6-3.el9_8 to patch the vulnerability.

Yes, implement input validation for JWE tokens and monitor memory usage to detect potential attacks.

For detailed information, refer to the CVE page for CVE-2026-39373.

Related vulnerabilities

Recent vulnerabilities recorded for python3-jwcrypto.

How To Fix

Minimum fixed version

1.5.6-3.el9_8

This is the first release that contains the fix.

sudo dnf update python3-jwcrypto

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