CVE-2016-6298: jwcrypto lacks the Random Filling protection mechanism

jwcrypto Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
5.3

CVE-2016-6298: jwcrypto lacks the Random Filling protection mechanism. Affects jwcrypto versions < 0.3.2. Fixed in 0.3.2. How to fix ↓

Also tracked for

The same CVE-2016-6298 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

jwcrypto is a Python package available on PyPI that provides a set of cryptographic utilities for JSON Web Tokens (JWT). It offers various algorithms for signing and encrypting JWTs, including the RSA 1.5 algorithm. This vulnerability affects jwcrypto versions prior to 0.3.2. The RSA 1.5 algorithm implementation in jwcrypto's _Rsa15 class lacks the Random Filling protection mechanism. This vulnerability makes it easier for remote attackers to obtain cleartext data via a Million Message Attack (MMA).

Vulnerability Detail

The vulnerability in jwcrypto's RSA 1.5 algorithm implementation allows remote attackers to exploit the lack of Random Filling protection mechanism. By performing a Million Message Attack (MMA), attackers can retrieve cleartext data. This vulnerability has a CVSS score of 5.3 (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N). It is considered moderate in severity. The CWE ID associated with this vulnerability is CWE-200.

How To Fix

Minimum fixed version

0.3.2

This is the first release that contains the fix.

pip install --upgrade "jwcrypto==0.3.2"

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

Conclusion

In conclusion, the jwcrypto package prior to version 0.3.2 is vulnerable to a Million Message Attack (MMA) due to the lack of Random Filling protection mechanism in its RSA 1.5 algorithm implementation. To mitigate this vulnerability, it is recommended to upgrade jwcrypto to version 0.3.2 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for jwcrypto →

Share this vulnerability

FAQ

jwcrypto is a Python package that provides cryptographic utilities for JSON Web Tokens (JWT). It offers algorithms for signing and encrypting JWTs.

This vulnerability allows remote attackers to obtain cleartext data by exploiting the lack of Random Filling protection mechanism in jwcrypto's RSA 1.5 algorithm implementation.

You can mitigate this vulnerability by upgrading jwcrypto to version 0.3.2 or later, which includes the Random Filling protection mechanism.

A Million Message Attack (MMA) is a cryptographic attack where an attacker can retrieve cleartext data by sending a large number of specially crafted messages.

This vulnerability is considered moderate in severity with a CVSS score of 5.3.

Related vulnerabilities

Recent vulnerabilities recorded for 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

Minimum fixed version

0.3.2

This is the first release that contains the fix.

pip install --upgrade "jwcrypto==0.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

Follow Vulert in Google

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