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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | djoser | < 2.3.0 | 2.3.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | djoser | 2.3.1-1 | — |
| Debian 13 | djoser | 2.3.1-1 | — |
| Debian 12 | djoser | 2.1.0-1+deb12u1 | — |
| Debian 11 | djoser | 2.1.0-1+deb11u1 | DLA-4060-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | djoser | 2.1.0-1ubuntu0.24.04.1 | USN-7354-1 |
| Ubuntu 22.04 LTS | djoser | 2.1.0-1ubuntu0.22.04.1 | USN-7354-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | djoser | 2.0.3-1ubuntu0.1~esm1 | USN-7354-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | djoser | < 2.3.0 | 2.3.0 | GHSA-v49p-m6gh-747c |
Advisories 2
- DLA-4060-1 djoser - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-7354-1 djoser vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026