Is django 5.0.6 vulnerable?

django 5.0.6, a Python package on PyPI. All 6 versions we track · PyPI page

27 vulnerabilities, 2 critical, 7 high

Upgrade django from 5.0.6 to 5.2.17 or later; that fixes all of them.

Known vulnerabilities in django 5.0.6

  • Critical CVSS 9.1

    CVE-2025-64459: Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.

    GHSA-frmv-pr5f-9mcr · published 5 Nov 2025 · fixed in 5.1.14

  • Critical CVSS 9.1

    CVE-2024-42005: Django SQL injection vulnerability

    GHSA-pv4p-cwwg-4rph · published 7 Aug 2024 · fixed in 5.0.8

  • High CVSS 7.1

    CVE-2025-57833: Django is subject to SQL injection through its column aliases

    GHSA-6w2r-r2m5-xq5w · published 8 Sep 2025 · fixed in 5.1.12

  • High CVSS 7.5

    CVE-2024-39330: Django Path Traversal vulnerability

    GHSA-9jmf-237g-qf46 · published 10 Jul 2024 · fixed in 5.0.7

  • High CVSS 7.5

    CVE-2024-39614: Django vulnerable to Denial of Service

    GHSA-f6f8-9mx6-9mx2 · published 10 Jul 2024 · fixed in 5.0.7

  • High CVSS 9.8

    CVE-2024-53908: Django SQL injection in HasKey(lhs, rhs) on Oracle

    GHSA-m9g8-fxxm-xg86 · published 6 Dec 2024 · fixed in 5.0.10

  • High CVSS 7.5

    CVE-2024-38875: Django vulnerable to Denial of Service

    GHSA-qg2p-9jwr-mmqf · published 10 Jul 2024 · fixed in 5.0.7

  • High CVSS 7.5

    CVE-2025-64458: Django has a denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows

    GHSA-qw25-v68c-qjf3 · published 5 Nov 2025 · fixed in 5.1.14

  • High CVSS 8.8

    CVE-2026-15307: Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing

    GHSA-wvqv-fj8w-qmhm · published 4 Aug 2026 · fixed in 5.2.17

  • Medium CVSS 5.3

    CVE-2024-45230: Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters

    GHSA-5hgc-2vfp-mqvc · published 8 Oct 2024 · fixed in 5.0.9

  • Medium CVSS 5.3

    CVE-2024-41990: Django vulnerable to a denial-of-service attack

    GHSA-795c-9xpc-xw6g · published 7 Aug 2024 · fixed in 5.0.8

  • Medium CVSS 4.0

    CVE-2025-48432: Django Improper Output Neutralization for Logs vulnerability

    GHSA-7xr5-9hcq-chf9 · published 5 Jun 2025 · fixed in 5.1.10

  • Medium CVSS 7.5

    CVE-2024-53907: Django denial-of-service in django.utils.html.strip_tags()

    GHSA-8498-2h75-472j · published 6 Dec 2024 · fixed in 5.0.10

  • Medium CVSS 6.1

    CVE-2026-53878: Django: DomainNameValidator permits newline characters that may enable HTTP header injection

    GHSA-8qcx-xf44-272x · published 7 Jul 2026 · fixed in 5.2.16

  • Medium CVSS 4.8

    CVE-2026-53877: Django: GDALRaster may over-read heap memory when constructed from bytes

    GHSA-crhf-3pfg-w68w · published 7 Jul 2026 · fixed in 5.2.16

  • Medium CVSS 5.3

    CVE-2024-41989: Django memory consumption vulnerability

    GHSA-jh75-99hh-qvx9 · published 7 Aug 2024 · fixed in 5.0.8

  • Medium CVSS 5.0

    CVE-2025-26699: Django Vulnerable to Allocation of Resources Without Limits or Throttling

    GHSA-p3fp-8748-vqfq · published 6 Mar 2025 · fixed in 5.0.13

  • Medium CVSS 5.3

    CVE-2026-15830: Django GeoDjango vulnerable to denial of service through deeply nested geometry collections

    GHSA-q238-5cxm-5c9h · published 4 Aug 2026 · fixed in 5.2.17

  • Medium CVSS 5.8

    CVE-2024-56374: Django has a potential denial-of-service vulnerability in IPv6 validation

    GHSA-qcgg-j2x8-h9g8 · published 14 Jan 2025 · fixed in 5.0.11

  • Medium CVSS 5.3

    CVE-2024-41991: Django vulnerable to denial-of-service attack

    GHSA-r836-hh6v-rg5g · published 7 Aug 2024 · fixed in 5.0.8

  • Medium CVSS 3.7

    CVE-2024-45231: Django allows enumeration of user e-mail addresses

    GHSA-rrqc-c2jx-6jgv · published 8 Oct 2024 · fixed in 5.0.9

  • Medium CVSS 5.8

    CVE-2025-27556: Django Potential Denial of Service (DoS) on Windows

    GHSA-wqfg-m96j-85vm · published 2 Apr 2025 · fixed in 5.0.14

  • Medium CVSS 5.3

    CVE-2024-39329: Django vulnerable to user enumeration attack

    GHSA-x7q2-wr7g-xqmf · published 10 Jul 2024 · fixed in 5.0.7

  • Low CVSS 3.1

    CVE-2026-48588: Django: cache middleware may expose private responses when unrelated request cookies are present

    GHSA-3h9f-r86x-qvjx · published 7 Jul 2026 · fixed in 5.2.16

  • Low CVSS 3.1

    CVE-2026-8404: Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling

    GHSA-8cjm-8mp7-r2xf · published 3 Jun 2026 · fixed in 5.2.15

  • Low CVSS 3.1

    CVE-2026-48587: Django: has_vary_header may expose cached responses when Vary values contain whitespace

    GHSA-923m-gv2p-w5qp · published 3 Jun 2026 · fixed in 5.2.15

  • Low CVSS 3.1

    CVE-2026-6873: Django: signed cookies are vulnerable to salt namespace collisions

    GHSA-h7pc-vwp9-298g · published 3 Jun 2026 · fixed in 5.2.15

How to fix it

With requirements.txt:

# in requirements.txt: change the line to django==5.2.17
pip install -r requirements.txt
  • If it is an indirect dependency, upgrade the package that depends on it, or add a minimum version constraint for it (e.g. in constraints.txt, or as a dependency in pyproject.toml).
  • Check the package's changelog for breaking changes (especially across major versions), update the lockfile with the package manager (never by hand), and run your tests.

Other versions of django

Newest version we track without known advisories: 6.1.3.

VersionKnown vulnerabilitiesHighest severity
6.1.3 0 None
5.2.19 0 None
5.2.18 0 None
5.2.17 0 None
5.0.6 (this page) 27 Critical
4.2.11 44 Critical

Every version of django →

Licence

Not looked up yet.

Check your whole project

django is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.

Get emailed about new advisories for django (free, no account)

About this data

Vulnerability data: OSV.dev, last checked 22 November 2026. Licence: deps.dev. AIssue checks the versions on this page every day. Severity comes from the advisory's own rating when it has one, else from its CVSS score.