{"id":"CVE-2021-30459","aliases":["GHSA-pghf-347x-c2gj","PYSEC-2021-10"],"url":"https://o3.security/vulnerability/CVE-2021-30459","summary":"SQL Injection via in django-debug-toolbar","details":"### Impact\nWith Django Debug Toolbar attackers are able to execute SQL by changing the `raw_sql` input of the SQL explain, analyze or select forms and submitting the form.\n\n**NOTE:** This is a high severity issue for anyone using the toolbar in a **production environment**.\n\nGenerally the Django Debug Toolbar team only maintains the latest version of django-debug-toolbar, but an exception was made because of the high severity of this issue.\n\n### Patches\nPlease upgrade to one of the following versions, depending on the major version you're using:\n\n- Version 1.x: [django-debug-toolbar 1.11.1](https://pypi.org/project/django-debug-toolbar/1.11.1/)\n- Version 2.x: [django-debug-toolbar 2.2.1](https://pypi.org/project/django-debug-toolbar/2.2.1/)\n- Version 3.x: [django-debug-toolbar 3.2.1](https://pypi.org/project/django-debug-toolbar/3.2.1/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [django-debug-toolbar repo](https://github.com/jazzband/django-debug-toolbar/issues/new)  (Please NO SENSITIVE INFORMATION, send an email instead!)\n* Email us at [security@jazzband.co](mailto:security@jazzband.co)","published":"2021-04-14T18:15:14.877Z","modified":"2026-08-27T08:15:15.096224Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"django-debug-toolbar","fixedVersion":"1.11.1"},{"ecosystem":"PyPI","name":"django-debug-toolbar","fixedVersion":"2.2.1"},{"ecosystem":"PyPI","name":"django-debug-toolbar","fixedVersion":"3.2.1"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/jazzband/django-debug-toolbar/releases"},{"type":"ADVISORY","url":"https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases/"},{"type":"FIX","url":"https://github.com/jazzband/django-debug-toolbar/security/advisories/GHSA-pghf-347x-c2gj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30459"},{"type":"WEB","url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-30459"},{"type":"PACKAGE","url":"https://github.com/jazzband/django-debug-toolbar"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-debug-toolbar/PYSEC-2021-10.yaml"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-27T08:15:15.096224Z"}}