ADVISORIES

Vulnerability

CVE-2024-21543

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.

6 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Debian 2PyPI 2Ubuntu 2

Advisories in PyPI

  • GHSA-v49p-m6gh-747c

    djoser Authentication Bypass

    High CVE-2024-21543 PyPI Updated 21 February 2025
  • PYSEC-2024-158

    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…

    CVE-2024-21543 PyPI Updated 10 June 2026

References