Skip to content

← Actionable
High, CVSS 7.2amended

SQL Injection via in django-debug-toolbar

CVE-2021-30459GHSA-pghf-347x-c2gj

What to do

Vendor fix available. Upgrade each affected package to the fixed version on its release line (django-debug-toolbar 3.2.1, 2.2.1, 1.11.1), redeploy, then verify what is actually installed.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

  • PyPI django-debug-toolbar

    Affected
    >= 0.10.0, < 1.11.1>= 2.0a1, < 2.2.1>= 3.0a1, < 3.2.1
    Fixed in
    3.2.1, 1.11.1, 2.2.1

Sources

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS 4.0
7.2 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U · score source
EPSS
  • CVE-2021-30459: 1.94% estimated exploitation activity in the next 30 days; percentile 80.16 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description

As published by the source; long descriptions are shortened.

Impact With Django Debug Toolbar attackers are able to execute SQL by changing the rawsql 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. Patches Please upgrade to one of the following versions, depending on the major version you're using: - Version 1.x: django-debug-toolbar 1.11.1 - Version 2.x: django-debug-toolbar 2.2.1 - Version 3.x: django-debug-toolbar 3.2.1 For more information If you have any questions or comments about this advisory: Open an issue in the django-debug-toolbar repo (Please NO SENSITIVE INFORMATION, send an email instead!) Email us at security@jazzband.co

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 3 · amended ·

    Amended from ghsa record GHSA-pghf-347x-c2gj

  2. Revision 2 · amended ·

    Reviewed OSV alias/range/CVSS4 correction; package source scopes and original publication preserved. No customer finding resolved.

  3. Revision 1 · created ·

    Published from osv record GHSA-pghf-347x-c2gj

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: CVE-2021-30459

Advisory: SQL Injection via in django-debug-toolbar
IDs: CVE-2021-30459, GHSA-pghf-347x-c2gj
Record: https://patchnext.com/advisories/cve-2021-30459 (revision 3, source checked 26 Oct 2026, 13:17 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: High (CVSS 7.2)
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor fix available; fixed versions by package: django-debug-toolbar 3.2.1, 2.2.1, 1.11.1. A vendor fix does not mean a deployment is fixed.

## Affected components
- PyPI django-debug-toolbar: affected >= 0.10.0, < 1.11.1; >= 2.0a1, < 2.2.1; >= 3.0a1, < 3.2.1; fixed in 3.2.1, 1.11.1, 2.2.1

## Suggested inspection (read-only)
- `python -m pip show django-debug-toolbar`: prints the installed version. Run with the environment that serves production active.

## Supported action
Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on django-debug-toolbar.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://osv.dev/vulnerability/GHSA-pghf-347x-c2gj (OSV record GHSA-pghf-347x-c2gj lists affected ranges: PyPI django-debug-toolbar >=0.10.0 =2.0a1 =3.0a1 <3.2.1 (fixed))
- Verified: https://github.com/advisories/GHSA-pghf-347x-c2gj (GitHub-reviewed advisory GHSA-pghf-347x-c2gj lists affected ranges: PyPI django-debug-toolbar >=0.10.0 =2.0a1 =3.0a1 <3.2.1)

Commands are suggestions: review each one before running it.

Loading voting…