{"answers":{"affected":"7 open source packages ship an affected version, including django-debug-toolbar. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-30459 in the wild and no public exploit code.","fix":"Upgrade django-debug-toolbar to a fixed version for your release line: 1.11.1, 2.2.1 or 3.2.1.","what":"CVE-2021-30459 is a critical SQL injection vulnerability in n/a, published on 14 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-30459 and fix it if it is affected.\n\nWhat it is: CVE-2021-30459 is a critical SQL injection vulnerability in n/a, published on 14 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-30459 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django-debug-toolbar (PyPI): affected from 0.10.0; fixed in 1.11.1, 2.2.1, 3.2.1\n- django-debug-toolbar (PyPI): affected from 0.10.0; fixed in 1.11.1\n- django-debug-toolbar (PyPI): affected from 0.10.0; fixed in 1.11.1\n- django-debug-toolbar (PyPI): affected from 2.0a1; fixed in 2.2.1\n- django-debug-toolbar (PyPI): affected from 2.0a1; fixed in 2.2.1\n- django-debug-toolbar (PyPI): affected from 3.0a1; fixed in 3.2.1\n- django-debug-toolbar (PyPI): affected from 3.0a1; fixed in 3.2.1\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-30459/ (Markdown: https://insights.sbomify.com/CVE-2021-30459/index.md)","id":"CVE-2021-30459","markdown":"https://insights.sbomify.com/CVE-2021-30459/index.md","name":"CVE-2021-30459","record":{"aliases":["GHSA-pghf-347x-c2gj","PYSEC-2021-10","openSUSE-SU-2024:11225-1","openSUSE-SU-2024:14137-1","openSUSE-SU-2026:11271-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Django Debug Toolbar","requires_auth":"none","summary":"Attackers can execute arbitrary SQL statements via the SQL Panel in Django Debug Toolbar, requiring the toolbar to be enabled.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"django_debug_toolbar","vendor":"jazzband"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"A SQL Injection issue in the SQL Panel in Jazzband Django Debug Toolbar before 1.11.1, 2.x before 2.2.1, and 3.x before 3.2.1 allows attackers to execute SQL statements by changing the raw_sql input field of the SQL explain, analyze, or select form.","ecosystems":["PyPI","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":"SQL Injection via in django-debug-toolbar","id":"CVE-2021-30459","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":9,"n_references":3,"next":{"headline":"Code injection in n/a","id":"CVE-2021-30461"},"packages":[{"ecosystem":"PyPI","fixed":["1.11.1","2.2.1","3.2.1"],"introduced":["0.10.0","2.0","3.0"],"last_affected":[],"package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"PYSEC-2021-10"},{"ecosystem":"PyPI","fixed":["1.11.1"],"introduced":["0.10.0"],"last_affected":[],"package":"django-debug-toolbar","purl":null,"source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"PyPI","fixed":["1.11.1"],"introduced":["0.10.0"],"last_affected":[],"package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"PyPI","fixed":["2.2.1"],"introduced":["2.0a1"],"last_affected":[],"package":"django-debug-toolbar","purl":null,"source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"PyPI","fixed":["2.2.1"],"introduced":["2.0a1"],"last_affected":[],"package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"PyPI","fixed":["3.2.1"],"introduced":["3.0a1"],"last_affected":[],"package":"django-debug-toolbar","purl":null,"source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"PyPI","fixed":["3.2.1"],"introduced":["3.0a1"],"last_affected":[],"package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"GHSA-pghf-347x-c2gj"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.3-1.2"],"introduced":["0"],"last_affected":[],"package":"python-django-debug-toolbar","purl":"pkg:rpm/opensuse/python-django-debug-toolbar\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14137-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.0.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-django-debug-toolbar","purl":"pkg:rpm/opensuse/python-django-debug-toolbar\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11271-1"}],"prev":{"headline":"Wikimedia Parsoid vulnerable to Cross-site Scripting (XSS)","id":"CVE-2021-30458"},"products":["n/a"],"published":"2021-04-14","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":["n/a"]},"summary":"Attackers can execute arbitrary SQL statements via the SQL Panel in Django Debug Toolbar, requiring the toolbar to be enabled.","url":"https://insights.sbomify.com/CVE-2021-30459/"}