PyPI package

Django 4.2.6 vulnerabilities, and the version that fixes all of them

Django 4.2.6 has 47 known vulnerabilities (17 rated high or critical); 5.2.17 fixes all of them. Django 4.2 reached end of life on Apr 7, 2026 and gets no more security fixes. Move to Django 5.2 (LTS).

PyPI (opens in a new tab) describes it as “A high-level Python web framework that encourages rapid development and clean, pragmatic design.”

Known vulnerabilities
47
17 rated high or critical
Released
Oct 4, 2023
Latest is 6.1.2
Django 4.2 support
End of life
Since Apr 7, 2026
Licence
BSD-3-Clause
OpenSSF Scorecard
6.7/10
django/django (opens in a new tab)
Pulls in
2 packages
Resolved by deps.dev

What to upgrade to

5.2.17 is the closest release with no known vulnerabilities.

  • 4.2.30

    Newest 4.x release. Released Apr 7, 2026.

    8 known vulnerabilities, worst rated warning
  • 5.2.17Upgrade to this

    Fixes all 47 known vulnerabilities. Released Aug 4, 2026.

    No known vulnerabilities
  • 6.1.2

    Latest release. Released Oct 6, 2026.

    No known vulnerabilities

5.2.17 came out on Aug 4, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for Django 4.2.6

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. CriticalCVE-2023-46695 on OSV.dev (opens in a new tab)GHSA-qmf9-6jqf-j8fqEPSS: top 2%

    Django potential denial of service vulnerability in UsernameField on Windows

    Fixed in 4.2.7. Published Nov 2, 2023.

  2. CriticalCVE-2024-39614 on OSV.dev (opens in a new tab)GHSA-f6f8-9mx6-9mx2EPSS: top 2%

    Django vulnerable to Denial of Service

    Fixed in 4.2.14. Published Jul 10, 2024.

  3. CriticalCVE-2025-57833 on OSV.dev (opens in a new tab)GHSA-6w2r-r2m5-xq5wEPSS: top 3%

    Django is subject to SQL injection through its column aliases

    Fixed in 4.2.24. Published Sep 8, 2025.

  4. WarningCVE-2024-45230 on OSV.dev (opens in a new tab)GHSA-5hgc-2vfp-mqvcEPSS: top 3%

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

    Fixed in 4.2.16. Published Oct 8, 2024.

  5. CriticalCVE-2025-64459 on OSV.dev (opens in a new tab)GHSA-frmv-pr5f-9mcrEPSS: top 3%

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

    Fixed in 4.2.26. Published Nov 5, 2025.

  6. WarningCVE-2025-32873 on OSV.dev (opens in a new tab)GHSA-8j24-cjrq-gr2mEPSS: top 4%

    Django has a denial-of-service possibility in strip_tags()

    Fixed in 4.2.21. Published May 8, 2025.

  7. CriticalCVE-2026-1207 on OSV.dev (opens in a new tab)GHSA-mwm9-4648-f68qEPSS: top 4%

    Django has an SQL Injection issue

    Fixed in 4.2.28. Published Feb 3, 2026.

  8. WarningCVE-2025-64460 on OSV.dev (opens in a new tab)GHSA-vrcr-9hj9-jcg6EPSS: top 19%

    Django is vulnerable to DoS via XML serializer text extraction

    Fixed in 4.2.27. Published Dec 2, 2025.

  9. WarningCVE-2024-56374 on OSV.dev (opens in a new tab)GHSA-qcgg-j2x8-h9g8EPSS: top 21%

    Django has a potential denial-of-service vulnerability in IPv6 validation

    Fixed in 4.2.18. Published Jan 14, 2025.

  10. CriticalCVE-2025-64458 on OSV.dev (opens in a new tab)GHSA-qw25-v68c-qjf3EPSS: top 21%

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

    Fixed in 4.2.26. Published Nov 5, 2025.

  11. WarningCVE-2024-27351 on OSV.dev (opens in a new tab)GHSA-vm8q-m57g-pff3EPSS: top 22%

    Regular expression denial-of-service in Django

    Fixed in 4.2.11. Published Mar 15, 2024.

  12. CriticalCVE-2024-24680 on OSV.dev (opens in a new tab)GHSA-xxj9-f6rv-m3x4EPSS: top 25%

    Django denial-of-service attack in the intcomma template filter

    Fixed in 4.2.10. Published Feb 7, 2024.

  13. CriticalCVE-2024-42005 on OSV.dev (opens in a new tab)GHSA-pv4p-cwwg-4rphEPSS: top 27%

    Django SQL injection vulnerability

    Fixed in 4.2.15. Published Aug 7, 2024.

  14. CriticalCVE-2024-53908 on OSV.dev (opens in a new tab)GHSA-m9g8-fxxm-xg86EPSS: top 28%

    Django SQL injection in HasKey(lhs, rhs) on Oracle

    Fixed in 4.2.17. Published Dec 6, 2024.

  15. WarningCVE-2024-53907 on OSV.dev (opens in a new tab)GHSA-8498-2h75-472jEPSS: top 29%

    Django denial-of-service in django.utils.html.strip_tags()

    Fixed in 4.2.17. Published Dec 6, 2024.

  16. WarningCVE-2024-41990 on OSV.dev (opens in a new tab)GHSA-795c-9xpc-xw6gEPSS: top 31%

    Django vulnerable to a denial-of-service attack

    Fixed in 4.2.15. Published Aug 7, 2024.

  17. WarningCVE-2024-41989 on OSV.dev (opens in a new tab)GHSA-jh75-99hh-qvx9EPSS: top 33%

    Django memory consumption vulnerability

    Fixed in 4.2.15. Published Aug 7, 2024.

  18. CriticalCVE-2024-38875 on OSV.dev (opens in a new tab)GHSA-qg2p-9jwr-mmqfEPSS: top 33%

    Django vulnerable to Denial of Service

    Fixed in 4.2.14. Published Jul 10, 2024.

  19. CriticalCVE-2026-25673 on OSV.dev (opens in a new tab)GHSA-8p8v-wh79-9r56EPSS: top 34%

    Django vulnerable to Uncontrolled Resource Consumption

    Fixed in 4.2.29. Published Mar 3, 2026.

  20. CriticalCVE-2026-15307 on OSV.dev (opens in a new tab)GHSA-wvqv-fj8w-qmhmEPSS: top 35%

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

    Fixed in 5.2.17. Published Aug 4, 2026.

  21. LowCVE-2025-14550 on OSV.dev (opens in a new tab)GHSA-33mw-q7rj-mjwjEPSS: top 35%

    Django has Inefficient Algorithmic Complexity

    Fixed in 4.2.28. Published Feb 3, 2026.

  22. LowCVE-2026-1285 on OSV.dev (opens in a new tab)GHSA-4rrr-2h4v-f3j9EPSS: top 35%

    Django has Inefficient Algorithmic Complexity

    Fixed in 4.2.28. Published Feb 3, 2026.

  23. WarningCVE-2026-15830 on OSV.dev (opens in a new tab)GHSA-q238-5cxm-5c9hEPSS: top 35%

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

    Fixed in 5.2.17. Published Aug 4, 2026.

  24. CriticalCVE-2024-39330 on OSV.dev (opens in a new tab)GHSA-9jmf-237g-qf46EPSS: top 38%

    Django Path Traversal vulnerability

    Fixed in 4.2.14. Published Jul 10, 2024.

  25. WarningCVE-2024-41991 on OSV.dev (opens in a new tab)GHSA-r836-hh6v-rg5gEPSS: top 40%

    Django vulnerable to denial-of-service attack

    Fixed in 4.2.15. Published Aug 7, 2024.

  26. WarningCVE-2025-13372 on OSV.dev (opens in a new tab)GHSA-rqw2-ghq9-44m7EPSS: top 41%

    Django is vulnerable to SQL injection in column aliases

    Fixed in 4.2.27. Published Dec 2, 2025.

  27. LowCVE-2025-59682 on OSV.dev (opens in a new tab)GHSA-q95w-c7qg-hrffEPSS: top 41%

    Django vulnerable to partial directory traversal via archives

    Fixed in 4.2.25. Published Oct 1, 2025.

  28. WarningCVE-2026-1312 on OSV.dev (opens in a new tab)GHSA-6426-9fv3-65x8EPSS: top 41%

    Django has an SQL Injection issue

    Fixed in 4.2.28. Published Feb 3, 2026.

  29. WarningCVE-2024-39329 on OSV.dev (opens in a new tab)GHSA-x7q2-wr7g-xqmfEPSS: top 42%

    Django vulnerable to user enumeration attack

    Fixed in 4.2.14. Published Jul 10, 2024.

  30. WarningCVE-2026-33033 on OSV.dev (opens in a new tab)GHSA-5mf9-h53q-7mhqEPSS: top 42%

    Django has potential DoS via MultiPartParser through crafted multipart uploads

    Fixed in 4.2.30. Published Apr 7, 2026.

  31. CriticalCVE-2026-1287 on OSV.dev (opens in a new tab)GHSA-gvg8-93h5-g6qqEPSS: top 43%

    Django has an SQL Injection issue

    Fixed in 4.2.28. Published Feb 3, 2026.

  32. CriticalCVE-2026-33034 on OSV.dev (opens in a new tab)GHSA-933h-hp56-hf7mEPSS: top 43%

    Django: SGI requests with a missing or understated `Content-Length` header could bypass the `DATA_UPLOAD_MAX_MEMORY_SIZE` limit

    Fixed in 4.2.30. Published Apr 7, 2026.

  33. WarningCVE-2025-26699 on OSV.dev (opens in a new tab)GHSA-p3fp-8748-vqfqEPSS: top 44%

    Django vulnerable to Allocation of Resources Without Limits or Throttling

    Fixed in 4.2.20. Published Mar 6, 2025.

  34. LowCVE-2025-13473 on OSV.dev (opens in a new tab)GHSA-2mcm-79hx-8fxwEPSS: top 44%

    Django has Observable Timing Discrepancy

    Fixed in 4.2.28. Published Feb 3, 2026.

  35. WarningCVE-2024-45231 on OSV.dev (opens in a new tab)GHSA-rrqc-c2jx-6jgvEPSS: top 45%

    Django allows enumeration of user e-mail addresses

    Fixed in 4.2.16. Published Oct 8, 2024.

  36. WarningCVE-2025-48432 on OSV.dev (opens in a new tab)GHSA-7xr5-9hcq-chf9EPSS: top 46%

    Django Improper Output Neutralization for Logs vulnerability

    Fixed in 4.2.22. Published Jun 5, 2025.

  37. CriticalCVE-2025-59681 on OSV.dev (opens in a new tab)GHSA-hpr9-3m2g-3j9pEPSS: top 52%

    Django vulnerable to SQL injection in column aliases

    Fixed in 4.2.25. Published Oct 1, 2025.

  38. LowCVE-2026-4277 on OSV.dev (opens in a new tab)GHSA-pwjp-ccjc-ghwgEPSS: top 53%

    Django vulnerable to privilege abuse in GenericInlineModelAdmin

    Fixed in 4.2.30. Published Apr 7, 2026.

  39. CriticalCVE-2026-3902 on OSV.dev (opens in a new tab)GHSA-mvfq-ggxm-9mc5EPSS: top 56%

    Django vulnerable to ASGI header spoofing via underscore/hyphen conflation

    Fixed in 4.2.30. Published Apr 7, 2026.

  40. WarningCVE-2026-53877 on OSV.dev (opens in a new tab)GHSA-crhf-3pfg-w68wEPSS: top 57%

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

    Fixed in 5.2.16. Published Jul 7, 2026.

  41. LowCVE-2026-48588 on OSV.dev (opens in a new tab)GHSA-3h9f-r86x-qvjxEPSS: top 65%

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

    Fixed in 5.2.16. Published Jul 7, 2026.

  42. LowCVE-2026-8404 on OSV.dev (opens in a new tab)GHSA-8cjm-8mp7-r2xfEPSS: top 65%

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

    Fixed in 5.2.15. Published Jun 3, 2026.

  43. LowCVE-2026-48587 on OSV.dev (opens in a new tab)GHSA-923m-gv2p-w5qpEPSS: top 65%

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

    Fixed in 5.2.15. Published Jun 3, 2026.

  44. LowCVE-2026-4292 on OSV.dev (opens in a new tab)GHSA-mmwr-2jhp-mc7jEPSS: top 72%

    Django vulnerable to privilege abuse in ModelAdmin.list_editable

    Fixed in 4.2.30. Published Apr 7, 2026.

  45. LowCVE-2026-25674 on OSV.dev (opens in a new tab)GHSA-mjgh-79qc-68w3EPSS: top 75%

    Django has a Race Condition vulnerability

    Fixed in 4.2.29. Published Mar 3, 2026.

  46. WarningCVE-2026-53878 on OSV.dev (opens in a new tab)GHSA-8qcx-xf44-272xEPSS: top 76%

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

    Fixed in 5.2.16. Published Jul 7, 2026.

  47. LowCVE-2026-6873 on OSV.dev (opens in a new tab)GHSA-h7pc-vwp9-298gEPSS: top 81%

    Django: signed cookies are vulnerable to salt namespace collisions

    Fixed in 5.2.15. Published Jun 3, 2026.

Is Django the only one?

Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly Django 4.2.6, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI, support dates from endoflife.date. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against PyPI, OSV.dev, deps.dev, CISA KEV, FIRST EPSS and endoflife.date.