Skip to main content
PyPI (Python)

django Known Vulnerabilities & Fixes

django has 77 known security vulnerabilities in PyPI (Python). Upgrade to version 6.1.1 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

77 Vulnerabilities

High Exploitation Risk

1 vulnerability has >50% exploit probability. Review and update soon.

Recommended safe version: 6.1.1

Upgrading to 6.1.1 or later resolves all 77 known vulnerabilities in django. Run: pip install "django>=6.1.1"

Is django in your project?

Check if you're affected and upgrade to 6.1.1 to stay secure.

77
Total
7
Critical
27
High
30
Medium
13
Low

Security Summary

  • 292 affected version ranges have been identified across these 77 advisories.
  • 100% of known issues have a published fixed version.
  • Highest exploit-probability (EPSS) score for django: 86.8%.
  • Remediation: pip install --upgrade django

Vulnerabilities

77 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Apr 26, 2019, most recently Aug 4, 2026 (2657 days apart).

CVE / GHSASeverity
CVE-2019-11358
XSS in jQuery as used in Drupal, Backdrop CMS, and other products
Affected
2.0, 2.0.1, 2.0.10, 2.0.12 (+28 more)
Fixed in
2.1.9, 2.2.2
MEDIUM
CVE-2021-35042
SQL Injection in Django
Affected
3.1, 3.1.1, 3.1.10, 3.1.11 (+38 more)
Fixed in
3.1.13, 3.2.5, 3.2.5 (+1 more)
CRITICAL
CVE-2022-34265
Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+22 more)
Fixed in
3.2.14, 4.0.6, 3.2.14 (+1 more)
CRITICAL
CVE-2022-28346
SQL Injection in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+41 more)
Fixed in
4.0.4, 3.2.13, 2.2.28 (+3 more)
CRITICAL
CVE-2021-3281
Django Directory Traversal via archive.extract
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+32 more)
Fixed in
2.2.18, 3.1.6, 3.0.12 (+3 more)
MEDIUM
CVE-2021-33571
Django Access Control Bypass possibly leading to SSRF, RFI, and LFI attacks
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+63 more)
Fixed in
2.2.24, 3.1.12, 3.2.4 (+3 more)
HIGH
CVE-2021-31542
Path Traversal in Django
Affected
2.2, 2.2.1, 2.2.2, 2.2.3 (+45 more)
Fixed in
2.2.21, 3.1.9, 3.2.1 (+3 more)
HIGH
CVE-2024-39614
Django vulnerable to Denial of Service
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+17 more)
Fixed in
5.0.7, 4.2.14, 5.0.7 (+1 more)
HIGH
CVE-2022-41323
Django denial-of-service vulnerability in internationalized URLs
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+32 more)
Fixed in
5b6b257fa7ec37ff27965358800c67e2dd11c924, 3.2.16, 4.0.8 (+4 more)
HIGH
CVE-2021-28658
Directory Traversal in Django
Affected
2.2, 2.2.1, 2.2.2, 2.2.3 (+47 more)
Fixed in
2.2.20, 3.0.14, 3.1.8 (+3 more)
MEDIUM
CVE-2023-36053
Django has regular expression denial of service vulnerability in EmailValidator/URLValidator
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+52 more)
Fixed in
3.2.20, 4.1.10, 4.2.3 (+3 more)
HIGH
CVE-2020-24583
Django Incorrect Default Permissions
Affected
2.2, 2.2.1, 2.2.2, 2.2.3 (+32 more)
Fixed in
2.2.16, 3.0.10, 3.1.1 (+3 more)
HIGH
CVE-2020-24584
Django Incorrect Default Permissions
Affected
2.2, 2.2.1, 2.2.2, 2.2.3 (+23 more)
Fixed in
2.2.16, 3.0.10, 3.1.1 (+3 more)
MEDIUM
CVE-2023-24580
Resource exhaustion in Django
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+40 more)
Fixed in
3.2.18, 4.0.10, 4.1.7 (+3 more)
HIGH
CVE-2022-23833
Infinite Loop in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+37 more)
Fixed in
2.2.27, 3.2.12, 4.0.2 (+3 more)
HIGH
CVE-2022-22818
Cross-site Scripting in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+37 more)
Fixed in
2.2.27, 3.2.12, 4.0.2 (+3 more)
MEDIUM
CVE-2021-32052
Header injection possible in Django
Affected
2.2, 2.2.1, 2.2.2, 2.2.3 (+30 more)
Fixed in
2.2.22, 3.1.10, 3.2.2 (+3 more)
MEDIUM
CVE-2022-28347
SQL Injection in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+41 more)
Fixed in
4.0.4, 3.2.13, 2.2.28 (+3 more)
CRITICAL
CVE-2021-45452
Directory-traversal in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+34 more)
Fixed in
2.2.26, 3.2.11, 4.0.1 (+3 more)
MEDIUM
CVE-2021-33203
Path Traversal in Django
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+262 more)
Fixed in
2.2.24, 3.1.12, 3.2.4 (+3 more)
MEDIUM
CVE-2024-27351
Regular expression denial-of-service in Django
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+35 more)
Fixed in
3.2.25, 4.2.11, 5.0.3 (+3 more)
MEDIUM
CVE-2021-45115
Denial-of-service in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+43 more)
Fixed in
2.2.26, 3.2.11, 4.0.1 (+3 more)
HIGH
CVE-2021-44420
Potential bypass of an upstream access control based on URL paths in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+72 more)
Fixed in
2.2.25, 3.1.14, 3.2.10 (+3 more)
MEDIUM
CVE-2024-24680
Django denial-of-service attack in the intcomma template filter
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+32 more)
Fixed in
3.2.24, 4.2.10, 5.0.2 (+3 more)
HIGH
CVE-2021-45116
Information disclosure in Django
Affected
2.2, 2.2.1, 2.2.10, 2.2.11 (+34 more)
Fixed in
2.2.26, 3.2.11, 4.0.1 (+3 more)
HIGH
CVE-2026-1207
Django has an SQL Injection issue
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
HIGH
CVE-2023-46695
Django potential denial of service vulnerability in UsernameField on Windows
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+48 more)
Fixed in
3.2.23, 4.1.13, 4.2.7 (+3 more)
HIGH
CVE-2024-53908
Django SQL injection in HasKey(lhs, rhs) on Oracle
Affected
5.0, 5.0.1, 5.0.2, 5.0.3 (+27 more)
Fixed in
5.0.10, 5.1.4, 4.2.17 (+6 more)
HIGH
CVE-2024-53907
Django denial-of-service in django.utils.html.strip_tags()
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+27 more)
Fixed in
5.1.4, 5.0.10, 4.2.17 (+6 more)
MEDIUM
CVE-2024-38875
Django vulnerable to Denial of Service
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+17 more)
Fixed in
4.2.14, 5.0.7, 4.2.14 (+1 more)
HIGH
CVE-2024-41990
Django vulnerable to a denial-of-service attack
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+19 more)
Fixed in
5.0.8, 4.2.15, 5.0.8 (+1 more)
MEDIUM
CVE-2024-56374
Django has a potential denial-of-service vulnerability in IPv6 validation
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+30 more)
Fixed in
5.1.5, 5.0.11, 4.2.18 (+3 more)
MEDIUM
CVE-2024-45230
Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+22 more)
Fixed in
5.1.1, 5.0.9, 4.2.16 (+3 more)
MEDIUM
CVE-2024-41989
Django memory consumption vulnerability
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+19 more)
Fixed in
5.0.8, 4.2.15, 5.0.8 (+1 more)
MEDIUM
CVE-2023-41164
Django Denial of service vulnerability in django.utils.encoding.uri_to_iri
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+33 more)
Fixed in
3.2.21, 4.1.11, 4.2.5 (+3 more)
MEDIUM
CVE-2023-43665
Django Denial-of-service in django.utils.text.Truncator
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+45 more)
Fixed in
3.2.22, 4.1.12, 4.2.6 (+3 more)
HIGH
CVE-2023-23969
Django contains Uncontrolled Resource Consumption via cached header
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+37 more)
Fixed in
3.2.17, 4.0.9, 4.1.6 (+3 more)
HIGH
CVE-2023-31047
Django bypasses validation when using one form field to upload multiple files
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+48 more)
Fixed in
3.2.19, 4.1.9, 4.2.1 (+3 more)
CRITICAL
CVE-2024-42005
Django SQL injection vulnerability
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+19 more)
Fixed in
5.0.8, 4.2.15, 5.0.8 (+1 more)
CRITICAL
CVE-2025-64459
Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.
Affected
5.2, 5.2.1, 5.2.2, 5.2.3 (+404 more)
Fixed in
5.2.8, 5.1.14, 4.2.26 (+3 more)
CRITICAL
CVE-2025-26699
Django Vulnerable to Allocation of Resources Without Limits or Throttling
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+36 more)
Fixed in
5.1.7, 5.0.13, 4.2.20 (+3 more)
MEDIUM
CVE-2025-27556
Django Potential Denial of Service (DoS) on Windows
Affected
5.0, 5.0.1, 5.0.10, 5.0.11 (+18 more)
Fixed in
5.0.14, 5.1.8, 5.1.8 (+1 more)
MEDIUM
CVE-2025-64460
Django is vulnerable to DoS via XML serializer text extraction
Affected
5.2, 5.2.1, 5.2.2, 5.2.3 (+56 more)
Fixed in
5.2.9, 5.1.15, 4.2.27 (+3 more)
MEDIUM
CVE-2024-41991
Django vulnerable to denial-of-service attack
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+19 more)
Fixed in
5.0.8, 4.2.15, 5.0.8 (+1 more)
MEDIUM
CVE-2026-25673
Django vulnerable to Uncontrolled Resource Consumption
Affected
6.0, 6.0.1, 6.0.2, 5.2 (+40 more)
Fixed in
6.0.3, 5.2.12, 4.2.29 (+3 more)
HIGH
CVE-2026-1285
Django has Inefficient Algorithmic Complexity
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
LOW
CVE-2025-14550
Django has Inefficient Algorithmic Complexity
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
LOW
CVE-2024-39330
Django Path Traversal vulnerability
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+17 more)
Fixed in
5.0.7, 4.2.14, 5.0.7 (+1 more)
HIGH
CVE-2025-59682
Django vulnerable to partial directory traversal via archives
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+41 more)
Fixed in
4.2.25, 5.1.13, 5.2.7 (+3 more)
LOW
CVE-2026-15307
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+431 more)
Fixed in
5.2.17, 6.0.8, 5.2.17 (+1 more)
HIGH
CVE-2024-39329
Django vulnerable to user enumeration attack
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+17 more)
Fixed in
5.0.7, 4.2.14, 5.0.7 (+1 more)
MEDIUM
CVE-2025-32873
Django has a denial-of-service possibility in strip_tags()
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+27 more)
Fixed in
4.2.21, 5.1.9, 5.2.1 (+3 more)
MEDIUM
CVE-2025-64458
Django has a denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows
Affected
5.2, 5.2.1, 5.2.2, 5.2.3 (+404 more)
Fixed in
5.2.8, 5.1.14, 4.2.26 (+3 more)
HIGH
CVE-2026-15830
Django GeoDjango vulnerable to denial of service through deeply nested geometry collections
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+435 more)
Fixed in
5.2.17, 6.0.8, 6.1.1 (+2 more)
MEDIUM
CVE-2025-48432
Django Improper Output Neutralization for Logs vulnerability
Affected
5.2, 5.2.1, 5.0, 5.0.1 (+387 more)
Fixed in
5.2.2, 5.1.10, 4.2.22 (+3 more)
MEDIUM
CVE-2024-45231
Django allows enumeration of user e-mail addresses
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+358 more)
Fixed in
4.2.16, 5.0.9, 5.1.1 (+3 more)
MEDIUM
CVE-2026-33033
Django has potential DoS via MultiPartParser through crafted multipart uploads
Affected
6.0, 6.0.1, 6.0.2, 6.0.3 (+43 more)
Fixed in
6.0.4, 5.2.13, 4.2.30 (+3 more)
MEDIUM
CVE-2026-33034
Django: SGI requests with a missing or understated `Content-Length` header could bypass the `DATA_UPLOAD_MAX_MEMORY_SIZE` limit
Affected
6.0, 6.0.1, 6.0.2, 6.0.3 (+43 more)
Fixed in
6.0.4, 5.2.13, 4.2.30 (+3 more)
HIGH
CVE-2025-57833
Django is subject to SQL injection through its column aliases
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+398 more)
Fixed in
4.2.24, 5.1.12, 5.2.6 (+3 more)
HIGH
CVE-2025-13473
Django has Observable Timing Discrepancy
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
LOW
CVE-2022-36359
Django vulnerable to Reflected File Download attack
Affected
3.2, 3.2.1, 3.2.10, 3.2.11 (+294 more)
Fixed in
3.2.15, 4.0.7, 3.2.15 (+1 more)
HIGH
CVE-2025-59681
Django vulnerable to SQL injection in column aliases
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+41 more)
Fixed in
4.2.25, 5.1.13, 5.2.7 (+3 more)
HIGH
CVE-2026-1312
Django has an SQL Injection issue
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
MEDIUM
CVE-2026-4277
Django vulnerable to privilege abuse in GenericInlineModelAdmin
Affected
4.2, 4.2.1, 4.2.10, 4.2.11 (+43 more)
Fixed in
4.2.30, 5.2.13, 6.0.4 (+3 more)
LOW
CVE-2026-1287
Django has an SQL Injection issue
Affected
6.0, 6.0.1, 6.0a1, 6.0b1 (+46 more)
Fixed in
6.0.2, 5.2.11, 4.2.28 (+3 more)
HIGH
CVE-2026-3902
Django vulnerable to ASGI header spoofing via underscore/hyphen conflation
Affected
6.0, 6.0.1, 6.0.2, 6.0.3 (+43 more)
Fixed in
6.0.4, 5.2.13, 4.2.30 (+3 more)
HIGH
CVE-2025-13372
Django is vulnerable to SQL injection in column aliases
Affected
5.2, 5.2.1, 5.2.2, 5.2.3 (+56 more)
Fixed in
5.2.9, 5.1.15, 4.2.27 (+3 more)
MEDIUM
CVE-2026-53877
Django: GDALRaster may over-read heap memory when constructed from bytes
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+426 more)
Fixed in
5.2.16, 6.0.7, 5.2.16 (+1 more)
MEDIUM
CVE-2026-35193
Django: UpdateCacheMiddleware may disclose private cached responses by omitting Authorization from Vary
Affected
5.2, 5.2.1, 5.2.10, 5.2.11 (+17 more)
Fixed in
5.2.15, 6.0.6, 5.2.15 (+1 more)
LOW
CVE-2026-8404
Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+424 more)
Fixed in
5.2.15, 6.0.6, 5.2.15 (+1 more)
LOW
CVE-2026-48588
Django: cache middleware may expose private responses when unrelated request cookies are present
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+426 more)
Fixed in
5.2.16, 6.0.7, 5.2.16 (+1 more)
LOW
CVE-2026-48587
Django: has_vary_header may expose cached responses when Vary values contain whitespace
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+424 more)
Fixed in
5.2.15, 6.0.6, 5.2.15 (+1 more)
LOW
CVE-2026-4292
Django vulnerable to privilege abuse in ModelAdmin.list_editable
Affected
6.0, 6.0.1, 6.0.2, 6.0.3 (+43 more)
Fixed in
6.0.4, 5.2.13, 4.2.30 (+3 more)
LOW
CVE-2026-25674
Django has a Race Condition vulnerability
Affected
6.0, 6.0.1, 6.0.2, 5.2 (+40 more)
Fixed in
6.0.3, 5.2.12, 4.2.29 (+3 more)
LOW
CVE-2026-53878
Django: DomainNameValidator permits newline characters that may enable HTTP header injection
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+426 more)
Fixed in
5.2.16, 6.0.7, 5.2.16 (+1 more)
MEDIUM
CVE-2026-6873
Django: signed cookies are vulnerable to salt namespace collisions
Affected
1.0.1, 1.0.2, 1.0.3, 1.0.4 (+424 more)
Fixed in
5.2.15, 6.0.6, 5.2.15 (+1 more)
LOW
CVE-2026-7666
Django fails to prevent reuse of a partially-initialized connection after a failed `STARTTLS` handshake
Affected
5.2, 5.2.1, 5.2.10, 5.2.11 (+17 more)
Fixed in
5.2.15, 6.0.6, 5.2.15 (+1 more)
LOW

About This Data

Vulnerability data for django is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Related PyPI (Python) Packages

Other packages in this ecosystem, ranked by shared vulnerabilities where available.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of django.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed