Advisory

PYSEC-2024-158

Also known as: CVE-2024-21543, GHSA-v49p-m6gh-747c

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2024-12-13 05:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

djoser

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.0 (ecosystem)

Fixed versions

2.3.0

Fix

  • Fixed version 2.3.0
    pip install --upgrade djoser==2.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences