Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-debug-toolbar
  4. ›
  5. CVE-2021-30459

CVE-2021-30459: SQL Injection via in django-debug-toolbar

April 16, 2021 (updated September 13, 2024)

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

NOTE: This is a high severity issue for anyone using the toolbar in a production environment.

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

References

  • cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-30459
  • github.com/advisories/GHSA-pghf-347x-c2gj
  • github.com/jazzband/django-debug-toolbar
  • github.com/jazzband/django-debug-toolbar/releases
  • github.com/jazzband/django-debug-toolbar/security/advisories/GHSA-pghf-347x-c2gj
  • github.com/pypa/advisory-database/tree/main/vulns/django-debug-toolbar/PYSEC-2021-10.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-30459
  • www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases

Code Behaviors & Features

Detect and mitigate CVE-2021-30459 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0a1 before 2.2.1, all versions starting from 3.0a1 before 3.2.1, all versions starting from 0.10.0 before 1.11.1

Fixed versions

  • 1.11.1
  • 2.2.1
  • 3.2.1

Solution

Upgrade to versions 1.11.1, 2.2.1, 3.2.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/django-debug-toolbar/CVE-2021-30459.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:58 +0000.