# CVE-2021-21416: Potential sensitive information disclosed in error reports

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2021-04-01T21:15:14.000Z
- Modified: 2026-07-08T06:27:33.519Z
- Also known as: GHSA-58c7-px5v-82hh, PYSEC-2021-11
- Weaknesses: CWE-201, CWE-209
- Assigned by: GitHub_M

## 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).

(As written by CVE List.)

## Affected

- ubernostrum django-registration: < 3.1.2
- django-registration (PyPI): before 3.1.2
- django-registration_project django-registration: before 3.1.2

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/ubernostrum/django-registration/security/advisories/GHSA-58c7-px5v-82hh> (advisory, mitigation, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-21416](https://www.cve.org/CVERecord?id=CVE-2021-21416), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-58c7-px5v-82hh](https://github.com/advisories/GHSA-58c7-px5v-82hh), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21416](https://nvd.nist.gov/vuln/detail/CVE-2021-21416), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-11](https://osv.dev/vulnerability/PYSEC-2021-11), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-21416 · Whole record: https://cve.day/CVE-2021-21416.json · Rebuilt by cve.day 2026-11-25T22:58:00.556Z
