{"answers":{"affected":"3 open source packages ship an affected version, including django-registration. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21416 in the wild and no public exploit code.","fix":"Upgrade django-registration to 3.1.2 or later.","what":"CVE-2021-21416 is a low-severity vulnerability in ubernostrum django-registration, published on 1 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-21416 and fix it if it is affected.\n\nWhat it is: CVE-2021-21416 is a low-severity vulnerability in ubernostrum django-registration, published on 1 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-21416 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django-registration (PyPI): affected all versions; fixed in 3.1.2\n- django-registration (PyPI): affected all versions; fixed in 3.1.2\n- django-registration (PyPI): affected all versions; fixed in 3.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-21416/ (Markdown: https://insights.sbomify.com/CVE-2021-21416/index.md)","id":"CVE-2021-21416","markdown":"https://insights.sbomify.com/CVE-2021-21416/index.md","name":"CVE-2021-21416","record":{"aliases":["DEBIAN-CVE-2021-21416","GHSA-58c7-px5v-82hh","MGASA-2022-0178","PYSEC-2021-11","UBUNTU-CVE-2021-21416","openSUSE-SU-2021:0588-1","openSUSE-SU-2021:0597-1","openSUSE-SU-2024:11226-1","openSUSE-SU-2024:14138-1","openSUSE-SU-2026:12007-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Django registration library","requires_auth":"high_privilege","summary":"Attackers can view sensitive user credentials in error reports if detailed error logging is enabled during registration failures.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"django-registration","vendor":"django-registration_project"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"}],"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 \u003c 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).","ecosystems":["PyPI","SUSE:Package Hub 15 SP2","openSUSE:Leap 15.2","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Potential sensitive information disclosed in error reports","id":"CVE-2021-21416","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":7,"n_references":1,"next":{"headline":"Use after free in fluidsynth","id":"CVE-2021-21417"},"packages":[{"ecosystem":"PyPI","fixed":["3.1.2"],"introduced":["0"],"last_affected":[],"package":"django-registration","purl":null,"source":"GHSA-58c7-px5v-82hh"},{"ecosystem":"PyPI","fixed":["3.1.2"],"introduced":["0"],"last_affected":[],"package":"django-registration","purl":"pkg:pypi/django-registration","source":"GHSA-58c7-px5v-82hh"},{"ecosystem":"PyPI","fixed":["3.1.2"],"introduced":["0"],"last_affected":[],"package":"django-registration","purl":"pkg:pypi/django-registration","source":"PYSEC-2021-11"},{"ecosystem":"SUSE:Package Hub 15 SP2","fixed":["3.1.2-bp152.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-registration","purl":"pkg:rpm/suse/python-django-registration\u0026distro=SUSE%20Package%20Hub%2015%20SP2","source":"openSUSE-SU-2021:0597-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["3.1.2-lp152.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-registration","purl":"pkg:rpm/opensuse/python-django-registration\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:0588-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3-2.2"],"introduced":["0"],"last_affected":[],"package":"python-django-registration","purl":"pkg:rpm/opensuse/python-django-registration\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14138-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.2.1-1.3"],"introduced":["0"],"last_affected":[],"package":"python-django-registration","purl":"pkg:rpm/opensuse/python-django-registration\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12007-1"}],"prev":{"headline":"Visual Studio Code Prisma Extension Remote Code Execution Vulnerability","id":"CVE-2021-21415"},"products":["django-registration"],"published":"2021-04-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["ubernostrum"]},"summary":"Attackers can view sensitive user credentials in error reports if detailed error logging is enabled during registration failures.","url":"https://insights.sbomify.com/CVE-2021-21416/"}