High severity7.1OSV Advisory· Published Dec 13, 2024· Updated Apr 15, 2026
CVE-2024-21543
CVE-2024-21543
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
djoserPyPI | < 2.3.0 | 2.3.0 |
Affected products
2- Range: 0.2.1, 0.3.0, 0.3.1, …
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-v49p-m6gh-747cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21543ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/djoser/PYSEC-2024-158.yamlghsaWEB
- github.com/sunscrapers/djoser/commit/d33c3993c0c735f23cbedc60fa59fce69354f19dnvdWEB
- github.com/sunscrapers/djoser/issues/795nvdWEB
- github.com/sunscrapers/djoser/pull/819nvdWEB
- github.com/sunscrapers/djoser/releases/tag/2.3.0nvdWEB
- lists.debian.org/debian-lts-announce/2025/02/msg00023.htmlnvdWEB
- security.snyk.io/vuln/SNYK-PYTHON-DJOSER-8366540nvdWEB
News mentions
0No linked articles in our index yet.