Information Disclosure Vulnerability in python-djangorestframework-simplejwt

Summary

16/03/2024
N/A
No i
Unrated
Not published

DEBIAN-CVE-2024-22513: djangorestframework-simplejwt version 5.3.1 and before is vulnerable to information disclosure. Affects python-djangorestframework-simplejwt versions 5.2.2-1 – 5.5.1-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The python-djangorestframework-simplejwt package is a popular library used for implementing JSON Web Tokens (JWT) in Django applications. It provides a simple and effective way to handle authentication and authorization in web applications. However, versions 5.3.1 and earlier are susceptible to a vulnerability that allows unauthorized access to resources even when user accounts are disabled.

Vulnerability Detail

The vulnerability arises from inadequate user validation checks in the for_user method of the djangorestframework-simplejwt package. This flaw enables users to access web application resources despite their accounts being disabled, leading to potential information disclosure. Attackers could exploit this vulnerability to gain unauthorized access to sensitive data, undermining the security of the application.

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, consider implementing additional user validation checks in your application to prevent access to resources for disabled accounts until the package can be updated.

Conclusion

The information disclosure vulnerability in python-djangorestframework-simplejwt poses a significant risk to applications using this package. It is crucial to update to the latest version to mitigate potential security threats and protect sensitive user data.

See every vulnerability recorded for python-djangorestframework-simplejwt →

Share this vulnerability

FAQ

The vulnerability allows users to access resources even after their accounts have been disabled due to missing validation checks.

Versions 5.3.1 and earlier of python-djangorestframework-simplejwt are affected by this vulnerability.

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 risks include unauthorized access to sensitive information, which could lead to data breaches and compromise user privacy.

Yes, a patch is available in version 5.3.2 and later of the python-djangorestframework-simplejwt package.

Related vulnerabilities

Recent vulnerabilities recorded for python-djangorestframework-simplejwt.

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