CVE-2021-21416
LOW 2.6CVSS 3.1Potential sensitive information disclosed in error reports
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).
- Published
- 1 Apr 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-201CWE-209
- Also known as
- GHSA-58c7-px5v-82hhPYSEC-2021-11
- Sources
- NVDJSONOSV GHSA-58c7-px5v-82hhJSONOSV PYSEC-2021-11JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | django-registration_project | django-registrationcpe:2.3:a:django-registration_project:django-registration:*:*:*:*:*:django:*:* |
< 3.1.2 | 3.1.2 |
| OSV | PyPI | django-registration | < 3.1.2 | 3.1.2 |
References
- https://github.com/ubernostrum/django-registration/security/advisories/GHSA-58c7-px5v-82hh · Mitigation, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-21416 · ADVISORY
- https://github.com/ubernostrum/django-registration/commit/2db0bb7ec35636ea46b07b146328b87b2cb13ca5 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django-registration/PYSEC-2021-11.yaml · WEB
- https://github.com/ubernostrum/django-registration · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Apr 2021)