cve.bz

CVE-2021-21416 django-registration project django-registration

2.6 lowEPSS 0.4%Fix available

Low (2.6) in django-registration project django-registration. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in django-registration 3.1.2.

On this page
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).

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-209 Generation of Error Message Containing Sensitive Information
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21416 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21416?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21416?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21416 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
django-registration_project:django-registrationbefore 3.1.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-58c7-px5v-82hhPyPIdjango-registration<3.1.23.1.2
PYSEC-2021-11PyPIdjango-registration<3.1.23.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14python-django-registration3.3-1DEBIAN-CVE-2021-21416
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morepython-django-registrationno fix listedUBUNTU-CVE-2021-21416
SUSEPackage Hub 15 SP2python-django-registration3.1.2-bp152.3.3.1openSUSE-SU-2021:0597-1
openSUSELeap 15.2python-django-registration3.1.2-lp152.3.3.1openSUSE-SU-2021:0588-1
openSUSETumbleweedpython-django-registration3.3-2.2openSUSE-SU-2024:14138-1
openSUSETumbleweedpython-django-registration5.2.1-1.3openSUSE-SU-2026:12007-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-54 Query System for Information Likelihood: High · Severity: Low
  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON