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, gra
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | djoser | < 2.3.0 | 2.3.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21543
- https://github.com/sunscrapers/djoser/issues/795
- https://github.com/sunscrapers/djoser/pull/819
- https://github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19d
- https://github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yaml
- https://github.com/sunscrapers/djoser
- https://github.com/sunscrapers/djoser/releases/tag/2.3.0
- https://lists.debian.org/debian-lts-announce/2025/02/msg00023.html
- https://security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540
- https://github.com/advisories/GHSA-v49p-m6gh-747c
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N- Weakness (CWE)
CWE-287, CWE-295- Platform
- Python (PyPI)
- Package
djoser- Disclosed
- 13.12.2024
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v49p-m6gh-747c - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2024-158 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: djoser
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.