Is django 4.0 vulnerable?

PyPI · 11 releases from 4.0.0 to 4.0.10 · latest django is 6.1.3 · checked 18 Nov 2026

Yes: 15 known advisories

Yes. django 4.0.10, the last 4.0 release, is affected by 15 known security advisories (2 critical, 4 high, 5 medium, 4 low), including CVE-2025-64459, CVE-2023-31047, CVE-2026-15307. 12 more affect earlier 4.0.x releases. Upgrade to 5.2.17 or later to fix all of them.

Upgrade with:pip install 'django>=5.2.17'

Is your project on an affected django?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting django 4.0.10

  • HighCVE-2026-15307GHSA-wvqv-fj8w-qmhm4 Aug 2026

    Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing

    Affected
    <5.2.17 · >=6.0a1 <6.0.8
    Fixed in
    5.2.17, 6.0.8
  • MediumCVE-2026-15830GHSA-q238-5cxm-5c9h4 Aug 2026

    Django GeoDjango vulnerable to denial of service through deeply nested geometry collections

    Affected
    <5.2.17 · >=6.0a1 <6.0.8 · >=6.1a1 <6.1.1
    Fixed in
    5.2.17, 6.0.8, 6.1.1
  • MediumCVE-2026-53878GHSA-8qcx-xf44-272x7 Jul 2026

    Django: DomainNameValidator permits newline characters that may enable HTTP header injection

    Affected
    <5.2.16 · >=6.0.0 <6.0.7
    Fixed in
    5.2.16, 6.0.7
  • MediumCVE-2026-53877GHSA-crhf-3pfg-w68w7 Jul 2026

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

    Affected
    <5.2.16 · >=6.0.0 <6.0.7
    Fixed in
    5.2.16, 6.0.7
  • LowCVE-2026-48588GHSA-3h9f-r86x-qvjx7 Jul 2026

    Django: cache middleware may expose private responses when unrelated request cookies are present

    Affected
    <5.2.16 · >=6.0.0 <6.0.7
    Fixed in
    5.2.16, 6.0.7
  • LowCVE-2026-8404GHSA-8cjm-8mp7-r2xf3 Jun 2026

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

    Affected
    <5.2.15 · >=6.0.0 <6.0.6
    Fixed in
    5.2.15, 6.0.6
  • LowCVE-2026-48587GHSA-923m-gv2p-w5qp3 Jun 2026

    Django: has_vary_header may expose cached responses when Vary values contain whitespace

    Affected
    <5.2.15 · >=6.0.0 <6.0.6
    Fixed in
    5.2.15, 6.0.6
  • LowCVE-2026-6873GHSA-h7pc-vwp9-298g3 Jun 2026

    Django: signed cookies are vulnerable to salt namespace collisions

    Affected
    <5.2.15 · >=6.0.0 <6.0.6
    Fixed in
    5.2.15, 6.0.6
  • CriticalCVE-2025-64459GHSA-frmv-pr5f-9mcr5 Nov 2025

    Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.

    Affected
    >=5.2a1 <5.2.8 · >=5.0a1 <5.1.14 · <4.2.26
    Fixed in
    4.2.26, 5.1.14, 5.2.8
  • HighCVE-2025-64458GHSA-qw25-v68c-qjf35 Nov 2025

    Django has a denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows

    Affected
    >=5.2a1 <5.2.8 · >=5.0a1 <5.1.14 · <4.2.26
    Fixed in
    4.2.26, 5.1.14, 5.2.8
  • HighCVE-2025-57833GHSA-6w2r-r2m5-xq5w8 Sept 2025

    Django is subject to SQL injection through its column aliases

    Affected
    <4.2.24 · >=5.0a1 <5.1.12 · >=5.2a1 <5.2.6
    Fixed in
    4.2.24, 5.1.12, 5.2.6
  • MediumCVE-2025-48432GHSA-7xr5-9hcq-chf95 Jun 2025

    Django Improper Output Neutralization for Logs vulnerability

    Affected
    >=5.2 <5.2.2 · >=5.0a1 <5.1.10 · <4.2.22
    Fixed in
    4.2.22, 5.1.10, 5.2.2
  • MediumCVE-2024-45231GHSA-rrqc-c2jx-6jgv8 Oct 2024

    Django allows enumeration of user e-mail addresses

    Affected
    >=5.1 <5.1.1 · >=5.0 <5.0.9 · <4.2.16
    Fixed in
    4.2.16, 5.0.9, 5.1.1
  • HighCVE-2023-36053GHSA-jh3w-4vvf-mjgr3 Jul 2023

    Django has regular expression denial of service vulnerability in EmailValidator/URLValidator

    Affected
    >=3.2a1 <3.2.20 · >=4.0a1 <4.1.10 · >=4.2a1 <4.2.3
    Fixed in
    3.2.20, 4.1.10, 4.2.3
  • CriticalCVE-2023-31047GHSA-r3xc-prgr-mg9p7 May 2023

    Django bypasses validation when using one form field to upload multiple files

    Affected
    >=3.2a1 <3.2.19 · >=4.0a1 <4.1.9 · >=4.2a1 <4.2.1
    Fixed in
    3.2.19, 4.1.9, 4.2.1

Fixed within 4.0.x, affecting earlier releases

  • HighCVE-2023-24580GHSA-2hrw-hx67-34x615 Feb 2023

    Resource exhaustion in Django

    Affected
    >=3.2a1 <3.2.18 · >=4.1a1 <4.1.7 · >=4.0a1 <4.0.10
    Fixed in
    3.2.18, 4.0.10, 4.1.7
  • HighCVE-2023-23969GHSA-q2jf-h9jm-m7p41 Feb 2023

    Django contains Uncontrolled Resource Consumption via cached header

    Affected
    >=3.2a1 <3.2.17 · >=4.0a1 <4.0.9 · >=4.1a1 <4.1.6
    Fixed in
    3.2.17, 4.0.9, 4.1.6
  • HighCVE-2022-41323GHSA-qrw5-5h28-6cmg16 Oct 2022

    Django denial-of-service vulnerability in internationalized URLs

    Affected
    >=3.2 <3.2.16 · >=4.0 <4.0.8 · >=4.1 <4.1.2
    Fixed in
    3.2.16, 4.0.8, 4.1.2
  • HighCVE-2022-36359GHSA-8x94-hmjh-97hq11 Aug 2022

    Django vulnerable to Reflected File Download attack

    Affected
    <3.2.15 · >=4.0 <4.0.7
    Fixed in
    3.2.15, 4.0.7
  • CriticalCVE-2022-34265GHSA-p64x-8rxx-wf6q5 Jul 2022

    Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

    Affected
    >=3.2a1 <3.2.14 · >=4.0a1 <4.0.6
    Fixed in
    3.2.14, 4.0.6
  • CriticalCVE-2022-28346GHSA-2gwj-7jmv-h26r13 Apr 2022

    SQL Injection in Django

    Affected
    >=2.2 <2.2.28 · >=3.2 <3.2.13 · >=4.0 <4.0.4
    Fixed in
    2.2.28, 3.2.13, 4.0.4
  • CriticalCVE-2022-28347GHSA-w24h-v9qh-8gxj13 Apr 2022

    SQL Injection in Django

    Affected
    >=2.2 <2.2.28 · >=3.2 <3.2.13 · >=4.0 <4.0.4
    Fixed in
    2.2.28, 3.2.13, 4.0.4
  • MediumCVE-2022-22818GHSA-95rw-fx8r-36v64 Feb 2022

    Cross-site Scripting in Django

    Affected
    >=2.2 <2.2.27 · >=3.2 <3.2.12 · >=4.0 <4.0.2
    Fixed in
    2.2.27, 3.2.12, 4.0.2
  • HighCVE-2022-23833GHSA-6cw3-g6wv-c2xv4 Feb 2022

    Infinite Loop in Django

    Affected
    >=2.2 <2.2.27 · >=3.2 <3.2.12 · >=4.0 <4.0.2
    Fixed in
    2.2.27, 3.2.12, 4.0.2
  • HighCVE-2021-45116GHSA-8c5j-9r9f-c6w812 Jan 2022

    Information disclosure in Django

    Affected
    >=2.2 <2.2.26 · >=3.2 <3.2.11 · >=4.0 <4.0.1
    Fixed in
    2.2.26, 3.2.11, 4.0.1
  • MediumCVE-2021-45452GHSA-jrh2-hc4r-7jwx12 Jan 2022

    Directory-traversal in Django

    Affected
    >=2.2 <2.2.26 · >=3.2 <3.2.11 · >=4.0 <4.0.1
    Fixed in
    2.2.26, 3.2.11, 4.0.1
  • HighCVE-2021-45115GHSA-53qw-q765-4fww12 Jan 2022

    Denial-of-service in Django

    Affected
    >=2.2a1 <2.2.26 · >=3.2a1 <3.2.11 · >=4.0a1 <4.0.1
    Fixed in
    2.2.26, 3.2.11, 4.0.1

Every django 4.0.x release

Affected: 4.0.0 to 4.0.10. Latest django: 6.1.3.

VersionKnown advisories
django 4.0.10CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047
django 4.0.9CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580
django 4.0.8CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969
django 4.0.7CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323
django 4.0.6CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359
django 4.0.5CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265
django 4.0.4CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265
django 4.0.3CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265, CVE-2022-28346, CVE-2022-28347
django 4.0.2CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265, CVE-2022-28346, CVE-2022-28347
django 4.0.1CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265, CVE-2022-28346, CVE-2022-28347, CVE-2022-22818, CVE-2022-23833
django 4.0.0CVE-2026-15307, CVE-2026-15830, CVE-2026-53878, CVE-2026-53877, CVE-2026-48588, CVE-2026-8404, CVE-2026-48587, CVE-2026-6873, CVE-2025-64459, CVE-2025-64458, CVE-2025-57833, CVE-2025-48432, CVE-2024-45231, CVE-2023-36053, CVE-2023-31047, CVE-2023-24580, CVE-2023-23969, CVE-2022-41323, CVE-2022-36359, CVE-2022-34265, CVE-2022-28346, CVE-2022-28347, CVE-2022-22818, CVE-2022-23833, CVE-2021-45116, CVE-2021-45452, CVE-2021-45115

Which of your client projects are still on django 4.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact django version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other django versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.