Skip to content
Heist/ feed
Back to feed
Low

python-django-registration — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-21416

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

Products
python-django-registration
Affected versions
1.0+dfsg-2, 2.0.4-1, 2.2-1, 2.2-2, 2.2-3, 2.2-5, 3.3-1, 3.3-1build1
Fixed versions
Not specified
CVEs
CVE-2021-21416
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:57 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-21416

core-osv · Original source

Published 1 Apr 2021, 22:15 UTC

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

osv:UBUNTU-CVE-2021-21416

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

python-django-registration

Fixed versions: Not specified

Complete source record
{
  "id": "cdaa85ca170da0df321645721e57bcd0478268db68bc0539e64a40b4be572f9e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-21416",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-21416",
    "summary": "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).",
    "evidence": "osv:UBUNTU-CVE-2021-21416",
    "products": [
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.0.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.2-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.2-3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2-5",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3-1build1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-django-registration",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.3-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2021-21416",
      "aliases": [
        "UBUNTU-CVE-2021-21416"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.0+dfsg-2",
            "2.0.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-django-registration",
                "binary_version": "2.0.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.2-1",
            "2.2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-django-registration",
                "binary_version": "2.2-2"
              },
              {
                "binary_name": "python3-django-registration",
                "binary_version": "2.2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.2-2",
            "2.2-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "2.2-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.2-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "2.2-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "3.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "3.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "3.3-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-django-registration",
            "purl": "pkg:deb/ubuntu/python-django-registration?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.3-1",
            "3.3-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21416.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-django-registration",
                "binary_version": "3.3-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:19.331335141Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-21416"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-21416",
        "https://github.com/ubernostrum/django-registration/security/advisories/GHSA-58c7-px5v-82hh",
        "https://www.cve.org/CVERecord?id=CVE-2021-21416"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-21416",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355249,
  "published_at": "2021-04-01T22:15:00+00:00"
}