Vulnerability · Published Apr 1, 2021 · Assigned by GitHub_M
CVE-2021-21416Potential sensitive information disclosed in error reports
Low 3.7
In plain English
A low-severity security flaw in django-registration from ubernostrum. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
django-registration is a user registration package for Django. The django-registration package provides tools for implementing user-account registration flows in the Django web framework. In django-registration prior to 3.1.2, the base user-account registration view did not properly apply filters to sensitive data, with the result that sensitive data could be included in error reports rather than removed automatically by Django. Triggering this requires: A site is using django-registration < 3.1.2, The site has detailed error reports (such as Django's emailed error reports to site staff/developers) enabled and a server-side error (HTTP 5xx) occurs during an attempt by a user to register an account. Under these conditions, recipients of the detailed error report will see all submitted data from the account-registration attempt, which may include the user's proposed credentials (such as a password).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-django-registration | 3.3-1 | DEBIAN-CVE-2021-21416 |
| Debian:13 | python-django-registration | 3.3-1 | DEBIAN-CVE-2021-21416 |
| Debian:14 | python-django-registration | 3.3-1 | DEBIAN-CVE-2021-21416 |
| PyPI | django-registration | 3.1.2 | GHSA-58c7-px5v-82hh |
| PyPI | django-registration | 3.1.2 | PYSEC-2021-11 |
| Ubuntu:22.04:LTS | python-django-registration | no fix listed | UBUNTU-CVE-2021-21416 |
| Ubuntu:24.04:LTS | python-django-registration | no fix listed | UBUNTU-CVE-2021-21416 |
| Ubuntu:25.10 | python-django-registration | no fix listed | UBUNTU-CVE-2021-21416 |
| Ubuntu:26.04:LTS | python-django-registration | no fix listed | UBUNTU-CVE-2021-21416 |
| Ubuntu:26.10 | python-django-registration | no fix listed | UBUNTU-CVE-2021-21416 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ubernostrum | django-registration | < 3.1.2 |
Weakness: CWE-209 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N