Skip to content

← Public intelligence

PyPI package

django

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

161 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5PyPIAmendedPublished

    Django database denial-of-service with ModelMultipleChoiceField

    CVE-2015-0222 · GHSA-6g95-x6cj-mg4v

    Affected
    • PyPI django >= 1.6, < 1.6.10; >= 1.7, < 1.7.3
    Fixed in
    1.6.101.7.3· Vendor fix available
    Issue
    ModelMultipleChoiceField in Django 1.6.x before 1.6.10 and 1.7.x before 1.7.3, when showhiddeninitial is set to True, allows remote attackers to cause a denial of service by submitting duplicate values, which triggers a large number of SQL queries.

    Recommended action: Upgrade to 1.7.3 or 1.6.10 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 8.7PyPIAmendedPublished

    Django DoS in django.views.static.serve

    CVE-2015-0221 · GHSA-jhjg-w2cp-5j44

    Affected
    • PyPI django < 1.4.18; >= 1.6, < 1.6.10; >= 1.7, < 1.7.3
    Fixed in
    1.6.101.4.181.7.3· Vendor fix available
    Issue
    The django.views.static.serve view in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 reads files an entire line at a time, which allows remote attackers to cause a denial of service (memory consumption) via a long line in a file.

    Recommended action: Upgrade to 1.7.3, 1.6.10 or 1.4.18 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 5.3PyPIAmendedPublished

    Django Cross-site Scripting Vulnerability

    CVE-2015-0220 · GHSA-gv98-g628-m9x5

    Affected
    • PyPI django < 1.4.18; >= 1.6, < 1.6.10; >= 1.7, < 1.7.3
    Fixed in
    1.6.101.4.181.7.3· Vendor fix available
    Issue
    The django.util.http.issafeurl function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a \njavascript: URL.

    Recommended action: Upgrade to 1.7.3, 1.6.10 or 1.4.18 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 6.6PyPIAmendedPublished

    Denial-of-service possibility in logout() view by filling session store

    CVE-2015-5964 · GHSA-x38m-486c-2wr9

    Affected
    • PyPI django >= 1.7, < 1.7.10; >= 1.4, < 1.4.22
    Fixed in
    1.7.101.4.22· Vendor fix available
    Issue
    The (1) contrib.sessions.backends.base.SessionBase.flush and (2) cachedb.SessionStore.flush functions in Django 1.7.x before 1.7.10, 1.4.x before 1.4.22, and possibly other versions create empty sessions in certain circumstances, which allows remote attackers to cause a denial of service (session store consumption) via unspecified vectors.

    Recommended action: Upgrade to 1.7.10 or 1.4.22 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Critical, CVSS 9.3PyPIAmendedPublished

    Code Injection in Django

    CVE-2014-0472 · GHSA-rvq6-mrpv-m6rm

    Affected
    • PyPI django < 1.4.11; >= 1.5, < 1.5.6; >= 1.6, < 1.6.3
    Fixed in
    1.6.31.5.61.4.11· Vendor fix available
    Issue
    The django.core.urlresolvers.reverse function in Django before 1.4.11, 1.5.x before 1.5.6, 1.6.x before 1.6.3, and 1.7.x before 1.7 beta 2 allows remote attackers to import and execute arbitrary Python modules by leveraging a view that constructs URLs using user input and a "dotted Python path."

    Recommended action: Upgrade to 1.6.3, 1.5.6 or 1.4.11 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. High, CVSS 8.1PyPIAmendedPublished

    Django Vulnerable to MySQL Injection

    CVE-2014-0474 · GHSA-wqjj-hx84-v449

    Affected
    • PyPI django < 1.4.11; >= 1.5, < 1.5.6; >= 1.6, < 1.6.3
    Fixed in
    1.6.31.5.61.4.11· Vendor fix available
    Issue
    The (1) FilePathField, (2) GenericIPAddressField, and (3) IPAddressField model field classes in Django before 1.4.11, 1.5.x before 1.5.6, 1.6.x before 1.6.3, and 1.7.x before 1.7 beta 2 do not properly perform type conversion, which allows remote attackers to have unspecified impact and vectors, related to "MySQL typecasting."

    Recommended action: Upgrade to 1.6.3, 1.5.6 or 1.4.11 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. High, CVSS 8.7PyPIAmendedPublished

    Django Reuses Cached CSRF Token

    CVE-2014-0473 · GHSA-89hj-xfx5-7q66

    Affected
    • PyPI django < 1.4.11; >= 1.5, < 1.5.6; >= 1.6, < 1.6.3
    Fixed in
    1.6.31.5.61.4.11· Vendor fix available
    Issue
    The caching framework in Django before 1.4.11, 1.5.x before 1.5.6, 1.6.x before 1.6.3, and 1.7.x before 1.7 beta 2 reuses a cached CSRF token for all anonymous users, which allows remote attackers to bypass CSRF protections by reading the CSRF cookie for anonymous users.

    Recommended action: Upgrade to 1.6.3, 1.5.6 or 1.4.11 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. Critical, CVSS 9.1PyPIAmendedPublished

    Django Vulnerable to Cache Poisoning

    CVE-2014-1418 · GHSA-q7q2-qf2q-rw3w

    Affected
    • PyPI django >= 1.4, < 1.4.13; >= 1.5, < 1.5.8; >= 1.6, < 1.6.5; >= 1.7a1, < 1.7b4
    Fixed in
    1.7b41.6.51.4.131.5.8· Vendor fix available
    Issue
    Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly include the (1) Vary: Cookie or (2) Cache-Control header in responses, which allows remote attackers to obtain sensitive information or poison the cache via a request from certain browsers.

    Recommended action: Upgrade to 1.6.5, 1.5.8, 1.4.13 or 1.7b4 (pre-release) by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. Medium, CVSS 5.3PyPIAmendedPublished

    Django cross-site scripting (XSS) vulnerability in the AdminURLFieldWidget widget

    CVE-2013-4249 · GHSA-4894-5vqc-6r2r

    Affected
    • PyPI django >= 1.5, < 1.5.2
    Fixed in
    1.5.2· Vendor fix available
    Issue
    Cross-site scripting (XSS) vulnerability in the AdminURLFieldWidget widget in contrib/admin/widgets.py in Django 1.5.x before 1.5.2 and 1.6.x before 1.6 beta 2 allows remote attackers to inject arbitrary web script or HTML via a URLField.

    Recommended action: Upgrade to 1.5.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Low, CVSS 2.3PyPIAmendedPublished

    Django User Enumeration Vulnerability

    CVE-2016-2513 · GHSA-fp6p-5xvw-m74f

    Affected
    • PyPI django < 1.8.10; >= 1.9, < 1.9.3
    Fixed in
    1.8.101.9.3· Vendor fix available
    Issue
    The password hasher in contrib/auth/hashers.py in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to enumerate users via a timing attack involving login requests.

    Recommended action: Upgrade to 1.9.3 or 1.8.10 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. Medium, CVSS 6.3PyPIAmendedPublished

    Django XSS Vulnerability

    CVE-2016-2512 · GHSA-pw27-w7w4-9qc7

    Affected
    • PyPI django < 1.8.10; >= 1.9a1, < 1.9.3
    Fixed in
    1.8.101.9.3· Vendor fix available
    Issue
    The utils.http.issafeurl function in Django before 1.8.10 and 1.9.x before 1.9.3 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks or possibly conduct cross-site scripting (XSS) attacks via a URL containing basic authentication, as demonstrated by http://mysite.example.com\@attacker.com.

    Recommended action: Upgrade to 1.9.3 or 1.8.10 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. High, CVSS 8.7PyPIAmendedPublished

    Django ReDoS in validators.URLValidator

    CVE-2015-5145 · GHSA-cqf7-ff9h-7967

    Affected
    • PyPI django >= 1.8a1, < 1.8.3
    Fixed in
    1.8.3· Vendor fix available
    Issue
    validators.URLValidator in Django 1.8.x before 1.8.3 allows remote attackers to cause a denial of service (CPU consumption) via unspecified vectors.

    Recommended action: Upgrade to 1.8.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. High, CVSS 8.7PyPIAmendedPublished

    Django Vulnerable to HTTP Response Splitting Attack

    CVE-2015-5144 · GHSA-q5qw-4364-5hhm

    Affected
    • PyPI django < 1.4.21; >= 1.5, < 1.7.9; >= 1.8a1, < 1.8.3
    Fixed in
    1.4.211.7.91.8.3· Vendor fix available
    Issue
    Django before 1.4.21, 1.5.x through 1.6.x, 1.7.x before 1.7.9, and 1.8.x before 1.8.3 uses an incorrect regular expression, which allows remote attackers to inject arbitrary headers and conduct HTTP response splitting attacks via a newline character in an (1) email message to the EmailValidator, a (2) URL to the URLValidator, or unspecified vectors to the (3) validateipv4address or (4) validateslug validator.

    Recommended action: Upgrade to 1.8.3, 1.7.9 or 1.4.21 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Medium, CVSS 6.6PyPIAmendedPublished

    Django denial of service via empty session record creation

    CVE-2015-5963 · GHSA-pgxh-wfw4-jx2v

    Affected
    • PyPI django >= 1.8, < 1.8.4; >= 1.7, < 1.7.10; >= 1.4, < 1.4.22
    Fixed in
    1.7.101.8.41.4.22· Vendor fix available
    Issue
    contrib.sessions.middleware.SessionMiddleware in Django 1.8.x before 1.8.4, 1.7.x before 1.7.10, 1.4.x before 1.4.22, and possibly other versions allows remote attackers to cause a denial of service (session store consumption or session record removal) via a large number of requests to contrib.auth.views.logout, which triggers the creation of an empty session record.

    Recommended action: Upgrade to 1.8.4, 1.7.10 or 1.4.22 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. Critical, CVSS 9.3PyPIAmendedPublished

    Django user with hardcoded password created when running tests on Oracle

    CVE-2016-9013 · GHSA-mv8g-fhh6-6267

    Affected
    • PyPI django >= 1.10a1, < 1.10.3; >= 1.9a1, < 1.9.11; >= 1.8a1, < 1.8.16
    Fixed in
    1.9.111.10.31.8.16· Vendor fix available
    Issue
    Django 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3 use a hardcoded password for a temporary database user created when running tests with an Oracle database, which makes it easier for remote attackers to obtain access to the database server by leveraging failure to manually specify a password in the database settings TEST dictionary.

    Recommended action: Upgrade to 1.10.3, 1.9.11 or 1.8.16 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. Critical, CVSS 9.2PyPIAmendedPublished

    Django DNS Rebinding Vulnerability

    CVE-2016-9014 · GHSA-3f2c-jm6v-cr35

    Affected
    • PyPI django >= 1.8a1, < 1.8.16; >= 1.9a1, < 1.9.11; >= 1.10a1, < 1.10.3
    Fixed in
    1.9.111.10.31.8.16· Vendor fix available
    Issue
    Django before 1.8.x before 1.8.16, 1.9.x before 1.9.11, and 1.10.x before 1.10.3, when settings.DEBUG is True, allow remote attackers to conduct DNS rebinding attacks by leveraging failure to validate the HTTP Host header against settings.ALLOWEDHOSTS.

    Recommended action: Upgrade to 1.10.3, 1.9.11 or 1.8.16 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. Medium, CVSS 5.3PyPIAmendedPublished

    Django cross-site scripting (XSS) vulnerability via is_safe_url function

    CVE-2013-6044 · GHSA-9cwg-mhxf-hh59

    Affected
    • PyPI django >= 1.4, < 1.4.6; >= 1.5, < 1.5.2
    Fixed in
    1.5.21.4.6· Vendor fix available
    Issue
    The issafeurl function in utils/http.py in Django 1.4.x before 1.4.6, 1.5.x before 1.5.2, and 1.6 before beta 2 treats a URL's scheme as safe even if it is not HTTP or HTTPS, which might introduce cross-site scripting (XSS) or other vulnerabilities into Django applications that use this function, as demonstrated by "the login view in django.contrib.auth.views" and the javascript: scheme.

    Recommended action: Upgrade to 1.5.2 or 1.4.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  18. High, CVSS 8.7PyPIAmendedPublished

    Django CSRF Protection Bypass

    CVE-2016-7401 · GHSA-crhm-qpjc-cm64

    Affected
    • PyPI django < 1.8.15; >= 1.9, < 1.9.10
    Fixed in
    1.8.151.9.10· Vendor fix available
    Issue
    The cookie parsing code in Django before 1.8.15 and 1.9.x before 1.9.10, when used on a site with Google Analytics, allows remote attackers to bypass an intended CSRF protection mechanism by setting arbitrary cookies.

    Recommended action: Upgrade to 1.9.10 or 1.8.15 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  19. High, CVSS 8.7PyPIAmendedPublished

    Django Might Allow CSRF Requests via URL Verification

    CVE-2011-4138 · GHSA-wxg3-mfph-qg9w

    Affected
    • PyPI django < 1.2.7; >= 1.3, < 1.3.1
    Fixed in
    1.3.11.2.7· Vendor fix available
    Issue
    The verifyexists functionality in the URLField implementation in Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's validity through a HEAD request, but then uses a GET request for the new target URL in the case of a redirect, which might allow remote attackers to trigger arbitrary GET requests with an unintended source IP address via a crafted Location header.

    Recommended action: Upgrade to 1.3.1 or 1.2.7 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  20. High, CVSS 8.7PyPIAmendedPublished

    Django Vulnerable to Cache Poisoning

    CVE-2011-4139 · GHSA-rm2j-x595-q9cj

    Affected
    • PyPI django < 1.2.7; >= 1.3, < 1.3.1
    Fixed in
    1.3.11.2.7· Vendor fix available
    Issue
    Django before 1.2.7 and 1.3.x before 1.3.1 uses a request's HTTP Host header to construct a full URL in certain circumstances, which allows remote attackers to conduct cache poisoning attacks via a crafted request.

    Recommended action: Upgrade to 1.3.1 or 1.2.7 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  21. Medium, CVSS 5.3PyPIAmendedPublished

    Django Cross-site scripting Vulnerability

    CVE-2016-6186 · GHSA-c8c8-9472-w52h

    Affected
    • PyPI django < 1.8.14; >= 1.9, < 1.9.8; >= 1.10a1, < 1.10rc1
    Fixed in
    1.10rc11.8.141.9.8· Vendor fix available
    Issue
    Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/js/admin/RelatedObjectLookups.js in Django before 1.8.14, 1.9.x before 1.9.8, and 1.10.x before 1.10rc1 allows remote attackers to inject arbitrary web script or HTML via vectors involving unsafe usage of Element.innerHTML.

    Recommended action: Upgrade to 1.9.8, 1.8.14 or 1.10rc1 (pre-release) by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  22. High, CVSS 7.7PyPIAmendedPublished

    Django Allows Open Redirects

    CVE-2014-3730 · GHSA-vq3h-3q7v-9prw

    Affected
    • PyPI django >= 1.4, < 1.4.13; >= 1.5, < 1.5.8; >= 1.6, < 1.6.5; >= 1.7a1, < 1.7b4
    Fixed in
    1.7b41.6.51.4.131.5.8· Vendor fix available
    Issue
    The django.util.http.issafeurl function in Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly validate URLs, which allows remote attackers to conduct open redirect attacks via a malformed URL, as demonstrated by "http:\\\djangoproject.com."

    Recommended action: Upgrade to 1.6.5, 1.5.8, 1.4.13 or 1.7b4 (pre-release) by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  23. High, CVSS 8.7PyPIAmendedPublished

    Django Incorrectly Validates URLs

    CVE-2014-0480 · GHSA-f7cm-ccfp-3q4r

    Affected
    • PyPI django < 1.4.14; >= 1.5, < 1.5.9; >= 1.6, < 1.6.6
    Fixed in
    1.5.91.6.61.4.14· Vendor fix available
    Issue
    The core.urlresolvers.reverse function in Django before 1.4.14, 1.5.x before 1.5.9, 1.6.x before 1.6.6, and 1.7 before release candidate 3 does not properly validate URLs, which allows remote attackers to conduct phishing attacks via a // (slash slash) in a URL, which triggers a scheme-relative URL to be generated.

    Recommended action: Upgrade to 1.6.6, 1.5.9 or 1.4.14 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  24. High, CVSS 8.7PyPIPublished

    Django Denial-of-service possibility with strip_tags

    CVE-2015-2316 · GHSA-j3j3-jrfh-cm2w

    Affected
    • PyPI django >= 1.6, < 1.6.11; >= 1.7, < 1.7.7; >= 1.8a1, < 1.8rc1
    Fixed in
    1.8rc11.7.71.6.11· Vendor fix available
    Issue
    The utils.html.striptags function in Django 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1, when using certain versions of Python, allows remote attackers to cause a denial of service (infinite loop) by increasing the length of the input string.

    Recommended action: Upgrade to 1.7.7, 1.6.11 or 1.8rc1 (pre-release) by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  25. Medium, CVSS 5.3PyPIPublished

    Django cross-site scripting (XSS) attack via user-supplied redirect URLs

    CVE-2015-2317 · GHSA-7fq8-4pv5-5w5c

    Affected
    • PyPI django < 1.4.20; >= 1.5, < 1.6.11; >= 1.7, < 1.7.7; >= 1.8a1, < 1.8rc1
    Fixed in
    1.8rc11.4.201.7.71.6.11· Vendor fix available
    Issue
    The utils.http.issafeurl function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.

    Recommended action: Upgrade to 1.7.7, 1.6.11, 1.4.20 or 1.8rc1 (pre-release) by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →