PyPI package

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

Django 4.2.27 has 21 known vulnerabilities (6 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
21
6 rated high or critical
Released
Dec 2, 2025
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 21 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.27

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  21. 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.27, 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.