djoser Authentication Bypass
High severity
GitHub Reviewed
Published
Dec 13, 2024
to the GitHub Advisory Database
•
Updated Jan 14, 2025
Description
Published by the National Vulnerability Database
Dec 13, 2024
Published to the GitHub Advisory Database
Dec 13, 2024
Reviewed
Dec 13, 2024
Last updated
Jan 14, 2025
Versions of the package djoser before 2.3.0 are vulnerable to Authentication Bypass when the authenticate() function fails. This is because the system falls back to querying the database directly, granting access to users with valid credentials, and eventually bypassing custom authentication checks such as two-factor authentication, LDAP validations, or requirements from configured AUTHENTICATION_BACKENDS.
References