CVE-2024-21543: djoser Authentication Bypass
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
- github.com/advisories/GHSA-v49p-m6gh-747c
- github.com/sunscrapers/djoser
- github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d
- github.com/sunscrapers/djoser/issues/795
- github.com/sunscrapers/djoser/pull/819
- github.com/sunscrapers/djoser/releases/tag/2.3.0
- nvd.nist.gov/vuln/detail/CVE-2024-21543
- security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540
Detect and mitigate CVE-2024-21543 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →