PyPI package

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

Django 5.2.12 has 18 known vulnerabilities (3 rated high or critical); 5.2.17 fixes all of them.

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
18
3 rated high or critical
Released
Mar 3, 2026
Latest is 6.1.2
Django 5.2 support
Supported
Until Apr 30, 2028
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.

  • 5.2.17Upgrade to this

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

    No known vulnerabilities
  • 5.2.18

    Newest 5.x release. Released Oct 6, 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 5.2.12

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

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

  3. 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 5.2.13. Published Apr 7, 2026.

  4. 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 5.2.13. Published Apr 7, 2026.

  5. LowCVE-2026-35192 on OSV.dev (opens in a new tab)GHSA-7h2m-m8vj-598hEPSS: top 49%

    Django Uses Persistent Cookies Containing Sensitive Information

    Fixed in 5.2.14. Published May 5, 2026.

  6. 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 5.2.13. Published Apr 7, 2026.

  7. 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 5.2.13. Published Apr 7, 2026.

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

  9. WarningCVE-2026-5766 on OSV.dev (opens in a new tab)GHSA-w26r-rmm8-9c29EPSS: top 58%

    Django has an Improper Handling of Length Parameter Inconsistency

    Fixed in 5.2.14. Published May 5, 2026.

  10. LowCVE-2026-6907 on OSV.dev (opens in a new tab)GHSA-5hrc-gvxj-w55pEPSS: top 64%

    Django Uses Cache Containing Sensitive Information

    Fixed in 5.2.14. Published May 5, 2026.

  11. LowCVE-2026-35193 on OSV.dev (opens in a new tab)GHSA-qpc8-7fxc-cm4pEPSS: top 64%

    Django: UpdateCacheMiddleware may disclose private cached responses by omitting Authorization from Vary

    Fixed in 5.2.15. Published Jun 3, 2026.

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

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

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

  15. 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 5.2.13. Published Apr 7, 2026.

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

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

  18. LowCVE-2026-7666 on OSV.dev (opens in a new tab)GHSA-mm6v-q8q9-pgcfEPSS: top 91%

    Django fails to prevent reuse of a partially-initialized connection after a failed `STARTTLS` handshake

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