Python/django/2.1.12
A high-level Python web framework that encourages rapid development and clean, pragmatic design.
https://pypi.org/project/django
BSD
5 Security Vulnerabilities
Path Traversal in Django
- https://nvd.nist.gov/vuln/detail/CVE-2021-33203
- https://github.com/advisories/GHSA-68w8-qjq3-2gfm
- https://docs.djangoproject.com/en/3.2/releases/security/
- https://groups.google.com/forum/#!forum/django-announce
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases/
- https://security.netapp.com/advisory/ntap-20210727-0004/
- https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f
- https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9
- https://docs.djangoproject.com/en/3.2/releases/security
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-98.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- https://security.netapp.com/advisory/ntap-20210727-0004
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.
Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.
- https://nvd.nist.gov/vuln/detail/CVE-2025-64459
- https://docs.djangoproject.com/en/dev/releases/security
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2025/nov/05/security-releases
- https://github.com/django/django/commit/06dd38324ac3d60d83d9f3adabf0dcdf423d2a85
- https://github.com/django/django/commit/59ae82e67053d281ff4562a24bbba21299f0a7d4
- https://github.com/django/django/commit/6703f364d767e949c5b0e4016433ef75063b4f9b
- https://github.com/django/django/commit/72d2c87431f2ae0431d65d0ec792047f078c8241
- https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html
- https://github.com/advisories/GHSA-frmv-pr5f-9mcr
- https://github.com/omarkurt/django-connector-CVE-2025-64459-testbed
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The methods QuerySet.filter(), QuerySet.exclude(), and QuerySet.get(), and the class Q(), are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the _connector argument. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank cyberstan for reporting this issue.
Django allows unintended model editing
- https://nvd.nist.gov/vuln/detail/CVE-2019-19118
- https://github.com/advisories/GHSA-hvmf-r92r-27hr
- https://github.com/django/django/commit/103ebe2b5ff1b2614b85a52c239f471904d26244
- https://github.com/django/django/commit/36f580a17f0b3cb087deadf3b65eea024f479c21
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/
- https://security.netapp.com/advisory/ntap-20191217-0003/
- https://security.gentoo.org/glsa/202004-17
- https://docs.djangoproject.com/en/dev/releases/security
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5
- https://security.netapp.com/advisory/ntap-20191217-0003
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases
Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)
Django has a denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows
- https://nvd.nist.gov/vuln/detail/CVE-2025-64458
- https://docs.djangoproject.com/en/dev/releases/security
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2025/nov/05/security-releases
- https://github.com/django/django/commit/3790593781d26168e7306b5b2f8ea0309de16242
- https://github.com/django/django/commit/4f5d904b63751dea9ffc3b0e046404a7fa5881ac
- https://github.com/django/django/commit/6e13348436fccf8f22982921d6a3a3e65c956a9f
- https://github.com/django/django/commit/770eea38d7a0e9ba9455140b5a9a9e33618226a7
- https://github.com/advisories/GHSA-qw25-v68c-qjf3
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. NFKC normalization in Python is slow on Windows. As a consequence, django.http.HttpResponseRedirect, django.http.HttpResponsePermanentRedirect, and the shortcut django.shortcuts.redirect were subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
Data leakage via cache key collision in Django
- https://nvd.nist.gov/vuln/detail/CVE-2020-13254
- https://github.com/advisories/GHSA-wpjr-j57x-wxfw
- https://docs.djangoproject.com/en/3.0/releases/security/
- https://groups.google.com/d/msg/django-announce/pPEmb2ot4Fo/X-SMalYSBAAJ
- https://www.djangoproject.com/weblog/2020/jun/03/security-releases/
- https://lists.debian.org/debian-lts-announce/2020/06/msg00016.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/
- https://security.netapp.com/advisory/ntap-20200611-0002/
- https://usn.ubuntu.com/4381-1/
- https://usn.ubuntu.com/4381-2/
- https://www.debian.org/security/2020/dsa-4705
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://github.com/django/django/commit/07e59caa02831c4569bbebb9eb773bdd9cb4b206
- https://github.com/django/django/commit/84b2da5552e100ae3294f564f6c862fef8d0e693
An issue was discovered in Django version 2.2 before 2.2.13 and 3.0 before 3.0.7. In cases where a memcached backend does not perform key validation, passing malformed cache keys could result in a key collision, and potential data leakage.
414 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 5.2.8 | UNKNOWN | |||
| 5.2.7 | BSD-3-Clause AND BSD | 2 | ||
| 5.2.6 | BSD-3-Clause AND BSD | 4 | ||
| 5.2.5 | BSD-3-Clause AND BSD | 4 | ||
| 5.2.4 | BSD-3-Clause AND BSD | 4 | ||
| 5.2.3 | BSD-3-Clause AND BSD | 4 | ||
| 5.2.2 | BSD-3-Clause AND BSD | 4 | ||
| 5.2.1 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.2 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.14 | UNKNOWN | |||
| 5.1.13 | BSD-3-Clause AND BSD | 2 | ||
| 5.1.12 | BSD-3-Clause AND BSD | 4 | ||
| 5.1.11 | BSD-3-Clause AND BSD | 4 | ||
| 5.1.10 | BSD-3-Clause AND BSD | 4 | ||
| 5.1.9 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.8 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.7 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.6 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.5 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.4 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.3 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.2 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1.1 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 5.1 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.14 | BSD-3-Clause AND BSD | 2 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.13 | BSD-3-Clause AND BSD | 2 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.12 | BSD-3-Clause AND BSD | 2 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.11 | BSD-3-Clause AND BSD | 2 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.10 | BSD-3-Clause AND BSD | 2 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.9 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.8 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.7 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.6 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.5 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.4 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.3 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.2 | BSD-3-Clause AND BSD | 5 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0.1 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 5.0 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.26 | BSD-3-Clause AND BSD | |||
| 4.2.25 | BSD-3-Clause AND BSD | 2 | ||
| 4.2.24 | BSD-3-Clause AND BSD | 4 | ||
| 4.2.23 | BSD-3-Clause AND BSD | 4 | ||
| 4.2.22 | BSD-3-Clause AND BSD | 4 | ||
| 4.2.21 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.20 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.19 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.18 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.17 | BSD-3-Clause AND BSD | 4 | 1970-01-01 - 00:00 | almost 56 years |
| 4.2.16 | BSD-3-Clause AND BSD | 6 | 1970-01-01 - 00:00 | almost 56 years |
