Djangoproject Django vulnerabilities
174 vulnerabilities
Known vulnerabilities in Djangoproject Django, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
RoutineCVE-2026-132809djangoproject · django +2 moreHeap buffer overflow in OGRGeometry.wkbAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
`django.contrib.gis.gdal.OGRGeometry.wkb` allocates an undersized buffer for geometries larger than 4GB on 64-bit platforms, which can cause service degradation when GDAL subsequently writes to it.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Zhixi "Jace" Sun for reporting this issue.CVSS6.9MediumEPSS0.75%PrioritiseCVE-2026-132092djangoproject · django +2 morePotential SQL injection in range and in lookupsAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
The `range` and `in` lookups are subject to SQL injection in a query involving aliases or key transforms containing percent signs.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Cristian Panaro for reporting this issue.CVSS9.8CriticalEPSS0.73%RoutineCVE-2026-127929djangoproject · django +2 moreInformation leakage in admin changelist via reverse relationsAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
The admin changelist allows staff users with view permission on a registered model to enumerate model values via repeated lookup searches using crafted query strings that reference reverse relations. Exploitation requires knowledge of related model names or `ForeignKey.related_query_name` overrides.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank OpenAI for reporting this issue.CVSS5.1MediumEPSS0.55%RoutineCVE-2026-125673djangoproject · django +2 morePotential cache poisoning via dot segments in request pathsAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
`django.middleware.cache.UpdateCacheMiddleware` and `django.views.decorators.cache.cache_page()` are affected by a bug in `django.http.HttpRequest.build_absolute_uri()`, which incorrectly
normalizes request paths containing `.` or `..` segments. Under certain deployment and URL configurations, this allows an unauthenticated attacker to poison the cache, causing cached
responses to be served for unintended URLs.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank 4drez for reporting this issue.CVSS6.3MediumEPSS0.62%RoutineCVE-2026-124827djangoproject · django +2 moreServer-side file-write via RasterField assignmentAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
`django.contrib.gis.db.models.RasterField` allows the creation of files at attacker-controlled locations via the `name` parameter of a data definition. Depending on the raster driver, this could enable remote code execution.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Mohammed Fathy for reporting this issue.CVSS8.8HighEPSS3.35%RoutineCVE-2026-119642djangoproject · django +2 moreInformation leakage in admin changelist via "pk" alias for OneToOneFieldAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
The admin changelist allows staff users with view permission on a registered model with a custom `OneToOneField` primary key to enumerate related model data via repeated lookup searches using the "pk" alias in the query string.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank JoeCyberTech for reporting this issue.CVSS5.1MediumEPSS0.54%RoutineCVE-2026-115868djangoproject · django +2 morePotential cross-site scripting vulnerability in truncatechars_htmlAn issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.
The `truncatechars_html` template filter and the `django.utils.text.Truncator.chars()` method (with `html=True`) are subject to a potential cross-site scripting (XSS) attack when certain inputs whose text length matches the truncation length are processed and rendered in an HTML attribute.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank JoeCyberTech for reporting this issue.CVSS6.1MediumEPSS0.54%RoutineCVE-2026-114582djangoproject · django +3 moreServer-side request forgery via SpatialReference string inputAn issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
`django.contrib.gis.gdal.SpatialReference` (and related `transform()` methods and `srs`/`srid` setters) do not restrict GDAL’s file and network access when parsing string input, which allows attackers to trigger server-side requests or local file reads via crafted spatial reference strings.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Adraca for reporting this issue.CVSS6.9MediumEPSS0.41%RoutineCVE-2026-113733djangoproject · django +1 morePassword hash disclosure to "view only" admin users with custom user modelsAn issue was discovered in Django 6.1 before 6.1.3 and 6.0 before 6.0.10.
The `django.contrib.admin.utils.display_for_field()` function did not obfuscate the password field of user models other than `AUTH_USER_MODEL`, or of an `AUTH_USER_MODEL` inheriting its password field from a concrete parent model through multi-table inheritance, which allows authenticated staff users with only the view permission on such a model to obtain full password hashes via the read-only change form.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Aaron chen for reporting this issue.CVSS2.2LowEPSS0.39%RoutineCVE-2026-113593djangoproject · django +3 morePotential exposure of private data via empty and missing Vary headersAn issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
The `django.middleware.cache.UpdateCacheMiddleware` and the `django.views.decorators.cache.cache_page()` decorator generate identical cache keys for requests that omit a header listed in the response’s `Vary` header and requests that include that header with an empty value, potentially allowing remote attackers to access private data cached for another request.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Andrew Gonzalez for reporting this issue.CVSS3.1LowEPSS0.44%RoutineCVE-2026-111362djangoproject · django +3 moreServer-side request forgery via crs member of GeoJSON geometriesAn issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
`django.contrib.gis.gdal.OGRGeometry` does not restrict external coordinate reference system definitions in GeoJSON input, which allows remote attackers to cause server-side requests to attacker-selected destinations via crafted crs members.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Submersion Security Research Team for reporting this issue.CVSS6.9MediumEPSS0.51%RoutineCVE-2026-111211djangoproject · django +3 morePotential log injection via unescaped geometry form valuesAn issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
`django.contrib.gis.forms.widgets.BaseGeometryWidget.deserialize()`, used by `django.contrib.gis.forms.GeometryField`, does not escape invalid submitted values before logging them, which allows remote attackers to inject or forge log entries via a crafted geometry value.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Aaron chen for reporting this issue.CVSS6.9MediumEPSS0.51%RoutineCVE-2026-108147djangoproject · django +3 morePotential memory exhaustion in MultiPartParser via base64-encoded file uploadAn issue was discovered in Django 6.1 before 6.1.3, 6.0.4 before 6.0.10, and 5.2.13 before 5.2.19.
`django.http.multipartparser.MultiPartParser` is subject to excessive memory consumption when processing multipart file uploads with base64 `Content-Transfer-Encoding`, which could be buffered entirely in memory before being passed to upload handlers.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Ignacy Kujawa for reporting this issue.CVSS6.9MediumEPSS0.56%RoutineCVE-2026-87975djangoproject · django +3 morePrivilege abuse in model formsets with editable primary keysAn issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.
`django.forms.models.BaseModelFormSet.save_existing_objects()` used the presence of a primary key on a submitted form's instance as evidence that the instance belonged to the formset's limiting queryset. An object outside that queryset is represented by a newly constructed instance whose primary key can still be populated from submitted data when the model's primary key is a field accepted by the form, such as a `OneToOneField` or parent link used as the primary key of an inline formset's model, or a natural or UUID primary key included in the form's fields. This allows an authenticated user permitted to submit such a formset to delete rows outside the limiting queryset, without any permission on the targeted object, via forged management-form data marking an out-of-queryset object for deletion. Models using the default AutoField primary key are not affected.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Seonggwon Yoon for reporting this issue.CVSS5.3MediumEPSS0.23%RoutineCVE-2026-87890djangoproject · django +3 morePotential request forgery via spatial lookup byte valuesAn issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.
An incomplete fix for CVE-2026-15307 in Django spatial lookups allows an attacker who can supply `bytes` values to cause the Django process to make network requests via a crafted VRT document referencing an external raster source.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank sicksec for reporting this issue.CVSS6.9MediumEPSS0.27%RoutineCVE-2026-84429djangoproject · django +3 morePotential denial-of-service vulnerability in HTTP header parsingAn issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.
`django.utils.http.parse_header_parameters()` was subject to a potential denial-of-service attack due to quadratic time complexity when parsing a value with many separators inside a quoted parameter. An unauthenticated request could reach this parsing through headers such as `Accept` or `Content-Type`, for instance via the content negotiation performed by `HttpRequest.accepts()`. The per-call length limit does not bound the combined size of repeated headers.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Jisung Chae for reporting this issue.CVSS6.9MediumEPSS0.48%RoutineCVE-2026-77050djangoproject · django +3 morePotential denial-of-service vulnerability in get_supported_language_variant()An issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.
`django.utils.translation.get_supported_language_variant()` is subject to
a potential denial-of-service attack when processing many distinct, very long
language codes, which are retained as keys in an in-memory cache and
consume process memory.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Gleb Lizunov for reporting this issue.CVSS6.9MediumEPSS0.48%RoutineCVE-2026-15920djangoproject · django +3 morePotential cross-site scripting via URLField values in the adminAn issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8.
`django.contrib.admin.utils.display_for_field()` renders `URLField` values as clickable links in the admin without validating the URL. A value stored with an unsafe scheme is displayed as a link on changelist and read-only admin pages, which allows cross-site scripting against staff users who click the link.
Exploitation requires the unsafe value to already be stored in the database. `URLField` validation through a `ModelForm` or the admin rejects unsafe schemes, so this affects applications that persist `URLField` data without running model validation, for example through direct queryset writes, deserialization, or bulk import of untrusted input.
Django would like to thank Egor Saltykov for reporting this issue.CVSS6.1MediumEPSS0.47%RoutineCVE-2026-15830djangoproject · django +16 morePotential denial-of-service vulnerability via nested geometry collectionsAn issue was discovered in Django 6.0 before 6.0.9 and 5.2 before 5.2.18.
GeoDjango's `django.contrib.gis.geos.GEOSGeometry` is subject to a potential denial-of-service when parsing deeply nested `GEOMETRYCOLLECTION` objects supplied as well-known text (WKT), well-known binary (WKB), or hex-encoded WKB, which triggers unbounded recursion and a segmentation fault in the underlying GEOS library. Spatial field lookups and the `django.contrib.gis.forms.GeometryField` form field are also affected.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Andrew MacPherson and kimchunbok_ for reporting this issue.CVSS6.9MediumEPSS2.18%RoutineCVE-2026-15337djangoproject · django +3 morePotential denial-of-service vulnerability in check_for_language()An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8.
`django.utils.translation.check_for_language()` is subject to a potential denial-of-service attack when given many distinct, very long language codes, which are retained as keys in an in-memory cache and consume process memory. Such codes reach the function through the `django.views.i18n.set_language()` view, which is not routed by default. The consumed memory is bounded, since request data is limited by the `DATA_UPLOAD_MAX_MEMORY_SIZE` setting (default 2.5 MB) and the cache holds a fixed maximum number of entries.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Jaeyoung Jang for reporting this issue.CVSS6.9MediumEPSS1.23%