{"answers":{"affected":"3 open source packages ship an affected version, including django-grappelli. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46898 exists.","fix":"Upgrade django-grappelli to 2.15.2 or later.","what":"CVE-2021-46898 is a medium-severity vulnerability in n/a, published on 22 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-46898 and fix it if it is affected.\n\nWhat it is: CVE-2021-46898 is a medium-severity vulnerability in n/a, published on 22 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46898 exists.\n\nAffected packages and fixed versions:\n- django-grappelli (PyPI): affected all versions; fixed in 2.15.2\n- django-grappelli (PyPI): affected all versions; fixed in 2.15.2\n- django-grappelli (PyPI): affected all versions; fixed in 2.15.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-46898/ (Markdown: https://insights.sbomify.com/CVE-2021-46898/index.md)","id":"CVE-2021-46898","markdown":"https://insights.sbomify.com/CVE-2021-46898/index.md","name":"CVE-2021-46898","record":{"aliases":["GHSA-9x43-5qcq-h79q","PYSEC-2023-211","openSUSE-SU-2023:0384-1","openSUSE-SU-2024:0017-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Django Grappelli plugin","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via protocol-relative URLs in Django Grappelli due to insufficient validation.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"django_grappelli","vendor":"vonautomatisch"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"views/switch.py in django-grappelli (aka Django Grappelli) before 2.15.2 attempts to prevent external redirection with startswith(\"/\") but this does not consider a protocol-relative URL (e.g., //example.com) attack.","ecosystems":["PyPI","SUSE:Package Hub 15 SP4","SUSE:Package Hub 15 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.5"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Django Grappelli Open Redirect vulnerability","id":"CVE-2021-46898","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":7,"n_references":4,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2021-46899"},"packages":[{"ecosystem":"PyPI","fixed":["2.15.2"],"introduced":["0"],"last_affected":[],"package":"django-grappelli","purl":null,"source":"GHSA-9x43-5qcq-h79q"},{"ecosystem":"PyPI","fixed":["2.15.2"],"introduced":["0"],"last_affected":[],"package":"django-grappelli","purl":"pkg:pypi/django-grappelli","source":"GHSA-9x43-5qcq-h79q"},{"ecosystem":"PyPI","fixed":["2.15.2"],"introduced":["0"],"last_affected":[],"package":"django-grappelli","purl":"pkg:pypi/django-grappelli","source":"PYSEC-2023-211"},{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["2.14.4-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-grappelli","purl":"pkg:rpm/suse/python-django-grappelli\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2023:0384-1"},{"ecosystem":"SUSE:Package Hub 15 SP5","fixed":["2.14.4-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-grappelli","purl":"pkg:rpm/suse/python-django-grappelli\u0026distro=SUSE%20Package%20Hub%2015%20SP5","source":"openSUSE-SU-2024:0017-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.14.4-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-grappelli","purl":"pkg:rpm/opensuse/python-django-grappelli\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2023:0384-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.14.4-bp155.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-django-grappelli","purl":"pkg:rpm/opensuse/python-django-grappelli\u0026distro=openSUSE%20Leap%2015.5","source":"openSUSE-SU-2024:0017-1"}],"prev":{"headline":"Wagtail CRX CodeRed Extensions vulnerable to Path Traversal","id":"CVE-2021-46897"},"products":["n/a"],"published":"2023-10-22","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-16","vendors":["n/a"]},"summary":"Attackers can redirect users to malicious sites via protocol-relative URLs in Django Grappelli due to insufficient validation.","url":"https://insights.sbomify.com/CVE-2021-46898/"}