Information Disclosure Vulnerability in djangorestframework-simplejwt (CVE-2024-22513)

Summary

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

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.0-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 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

djangorestframework-simplejwt is a popular Python package that provides JSON Web Token (JWT) authentication for Django REST Framework applications. It simplifies the process of implementing JWT authentication, allowing developers to secure their APIs efficiently. The package is widely used in web applications to manage user authentication and authorization. However, a critical vulnerability has been identified in versions 5.3.1 and earlier, which could lead to unauthorized access to resources even after user accounts have been disabled.

Vulnerability Detail

The vulnerability arises from missing user validation checks in the for_user method of the djangorestframework-simplejwt package. This oversight allows users to access web application resources despite their accounts being disabled. The potential ramifications include unauthorized access to sensitive data and resources, which could compromise the security of the application and its users. This issue highlights the importance of robust user validation mechanisms in authentication frameworks.

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, you can implement additional checks in your application to ensure that disabled users cannot access resources. This may involve modifying your authentication logic to explicitly check the user's status before granting access to any protected resources.

Conclusion

The CVE-2024-22513 vulnerability in djangorestframework-simplejwt poses a significant risk by allowing disabled users to access protected resources. It is crucial for developers using this package to upgrade to a secure version and implement additional validation checks to safeguard their applications.

See every vulnerability recorded for python-djangorestframework-simplejwt →

Share this vulnerability

FAQ

CVE-2024-22513 is a vulnerability in the djangorestframework-simplejwt package that allows unauthorized access to resources for disabled user accounts.

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

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate upgrade is not possible, implement additional user validation checks in your application to prevent disabled users from accessing resources.

More information can be found in the CVE database and the official documentation of the 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