chore(deps): update dependency django to v4 [security]#3534
Open
renovate-bot wants to merge 1 commit intogoogleapis:masterfrom
Open
chore(deps): update dependency django to v4 [security]#3534renovate-bot wants to merge 1 commit intogoogleapis:masterfrom
renovate-bot wants to merge 1 commit intogoogleapis:masterfrom
Conversation
fba5f39 to
bbe3bdd
Compare
bbe3bdd to
abd2386
Compare
abd2386 to
0f16c3c
Compare
0f16c3c to
f455e23
Compare
f455e23 to
bed5af4
Compare
bed5af4 to
0b1ace6
Compare
0b1ace6 to
069e21e
Compare
069e21e to
65af5ef
Compare
65af5ef to
cd13e88
Compare
cd13e88 to
932f76b
Compare
932f76b to
e13c36d
Compare
e13c36d to
f36802d
Compare
f36802d to
02a6192
Compare
02a6192 to
73d0a76
Compare
73d0a76 to
14c448c
Compare
ce1eb2e to
2689e76
Compare
f504911 to
bf72ffb
Compare
bf72ffb to
2037f35
Compare
2037f35 to
89ff52e
Compare
89ff52e to
b32546e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.8.12→==4.2.26GitHub Vulnerability Alerts
CVE-2018-7537
An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.
CVE-2017-7234
A maliciously crafted URL to a Django (1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18) site using the
django.views.static.serve()view could redirect to any other domain, aka an open redirect vulnerability.CVE-2019-19844
Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. A suitably crafted email address (that is equal to an existing user's email address after case transformation of Unicode characters) would allow an attacker to be sent a password reset token for the matched user account. (One mitigation in the new releases is to send password reset tokens only to the registered user email address.)
CVE-2020-7471
Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject malicious SQL.
CVE-2021-33203
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.
CVE-2016-6186
Cross-site scripting (XSS) vulnerability in the
dismissChangeRelatedObjectPopupfunction incontrib/admin/static/admin/js/admin/RelatedObjectLookups.jsin 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.CVE-2016-7401
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.
CVE-2022-36359
An issue was discovered in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename is derived from user-supplied input.
CVE-2016-9013
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.
CVE-2017-7233
Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely
django.utils.http.is_safe_url()) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, if a developer relies onis_safe_url()to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.CVE-2016-9014
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.ALLOWED_HOSTS.
CVE-2018-7536
An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. The
django.utils.html.urlize()function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (only one regular expression for Django 1.8.x). Theurlize()function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable.CVE-2024-45231
An issue was discovered in Django v5.1.1, v5.0.9, and v4.2.16. The django.contrib.auth.forms.PasswordResetForm class, when used in a view implementing password reset flows, allows remote attackers to enumerate user e-mail addresses by sending password reset requests and observing the outcome (only when e-mail sending is consistently failing).
CVE-2025-48432
An issue was discovered in Django 5.2 before 5.2.2, 5.1 before 5.1.10, and 4.2 before 4.2.22. Internal HTTP response logging does not escape request.path, which allows remote attackers to potentially manipulate log output via crafted URLs. This may lead to log injection or forgery when logs are viewed in terminals or processed by external systems.
CVE-2025-57833
An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
CVE-2025-64459
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(), andQuerySet.get(), and the classQ(), are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the_connectorargument.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.
CVE-2025-64458
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 shortcutdjango.shortcuts.redirectwere 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.
Release Notes
django/django (django)
v4.2.26Compare Source
v4.2.25Compare Source
v4.2.24Compare Source
v4.2.23Compare Source
v4.2.22Compare Source
v4.2.21Compare Source
v4.2.20Compare Source
v4.2.19Compare Source
v4.2.18Compare Source
v4.2.17Compare Source
v4.2.16Compare Source
v4.2.15Compare Source
v4.2.14Compare Source
v4.2.13Compare Source
v4.2.12Compare Source
v4.2.11Compare Source
v4.2.10Compare Source
v4.2.9Compare Source
v4.2.8Compare Source
v4.2.7Compare Source
v4.2.6Compare Source
v4.2.5Compare Source
v4.2.4Compare Source
v4.2.3Compare Source
v4.2.2Compare Source
v4.2.1Compare Source
v4.2Compare Source
v4.1.13Compare Source
v4.1.12Compare Source
v4.1.11Compare Source
v4.1.10Compare Source
v4.1.9Compare Source
v4.1.8Compare Source
v4.1.7Compare Source
v4.1.6Compare Source
v4.1.5Compare Source
v4.1.4Compare Source
v4.1.3Compare Source
v4.1.2Compare Source
v4.1.1Compare Source
v4.1Compare Source
v4.0.10Compare Source
v4.0.9Compare Source
v4.0.8Compare Source
v4.0.7Compare Source
v4.0.6Compare Source
v4.0.5Compare Source
v4.0.4Compare Source
v4.0.3Compare Source
v4.0.2Compare Source
v4.0.1Compare Source
v4.0Compare Source
v3.2.25Compare Source
v3.2.24Compare Source
v3.2.23Compare Source
v3.2.22Compare Source
v3.2.21Compare Source
v3.2.20Compare Source
v3.2.19Compare Source
v3.2.18Compare Source
v3.2.17Compare Source
v3.2.16Compare Source
v3.2.15Compare Source
v3.2.14Compare Source
v3.2.13Compare Source
v3.2.12Compare Source
v3.2.11Compare Source
v3.2.10Compare Source
v3.2.9Compare Source
v3.2.8Compare Source
v3.2.7Compare Source
v3.2.6Compare Source
v3.2.5Compare Source
v3.2.4Compare Source
v3.2.3Compare Source
v3.2.2Compare Source
v3.2.1Compare Source
v3.2Compare Source
v3.1.14Compare Source
v3.1.13Compare Source
v3.1.12Compare Source
v3.1.11Compare Source
v3.1.10Compare Source
v3.1.9Compare Source
v3.1.8Compare Source
v3.1.7Compare Source
v3.1.6Compare Source
v3.1.5Compare Source
v3.1.4Compare Source
v3.1.3Compare Source
v3.1.2Compare Source
v3.1.1Compare Source
v3.1Compare Source
v3.0.14Compare Source
v3.0.13Compare Source
v3.0.12Compare Source
v3.0.11Compare Source
v3.0.10Compare Source
v3.0.9Compare Source
v3.0.8Compare Source
v3.0.7Compare Source
v3.0.6Compare Source
v3.0.5Compare Source
v3.0.4Compare Source
v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0Compare Source
v2.2.28Compare Source
v2.2.27Compare Source
v2.2.26Compare Source
v2.2.25Compare Source
v2.2.24Compare Source
v2.2.23Compare Source
v2.2.22Compare Source
v2.2.21Compare Source
v2.2.20Compare Source
v2.2.19Compare Source
v2.2.18Compare Source
v2.2.17Compare Source
v2.2.16Compare Source
v2.2.15Compare Source
v2.2.14Compare Source
v2.2.13Compare Source
v2.2.12Compare Source
v2.2.11Compare Source
v2.2.10Compare Source
v2.2.9Compare Source
v2.2.8Compare Source
v2.2.7Compare Source
v2.2.6Compare Source
v2.2.5Compare Source
v2.2.4Compare Source
v2.2.3Compare Source
v2.2.2Compare Source
v2.2.1Compare Source
v2.2Compare Source
v2.1.15Compare Source
v2.1.14Compare Source
v2.1.13Compare Source
v2.1.12Compare Source
v2.1.11Compare Source
v2.1.10Compare Source
v2.1.9Compare Source
v2.1.8Compare Source
v2.1.7Compare Source
v2.1.5Compare Source
v2.1.4Compare Source
v2.1.3Compare Source
v2.1.2Compare Source
v2.1.1Compare Source
v2.1Compare Source
v2.0.13Compare Source
v2.0.12Compare Source
v2.0.10Compare Source
v2.0.9Compare Source
v2.0.8Compare Source
v2.0.7Compare Source
v2.0.6Compare Source
v2.0.5Compare Source
v2.0.4Compare Source
v2.0.3Compare Source
v2.0.2Compare Source
v2.0.1Compare Source
v2.0Compare Source
v1.11.29Compare Source
v1.11.28Compare Source
v1.11.27Compare Source
v1.11.26Compare Source
v1.11.25Compare Source
v1.11.24Compare Source
v1.11.23Compare Source
v1.11.22Compare Source
v1.11.21Compare Source
v1.11.20Compare Source
v1.11.18Compare Source
v1.11.17Compare Source
v1.11.16Compare Source
v1.11.15Compare Source
v1.11.14Compare Source
v1.11.13Compare Source
v1.11.12Compare Source
v1.11.11Compare Source
v1.11.10Compare Source
v1.11.9Compare Source
v1.11.8Compare Source
v1.11.7Compare Source
v1.11.6Compare Source
v1.11.5Compare Source
v1.11.4Compare Source
v1.11.3Compare Source
v1.11.2Compare Source
v1.11.1Compare Source
v1.11Compare Source
v1.10.8Compare Source
v1.10.7Compare Source
v1.10.6Compare Source
v1.10.5Compare Source
v1.10.4Compare Source
v1.10.3Compare Source
v1.10.2Compare Source
v1.10.1Compare Source
v1.10Compare Source
v1.9.13Compare Source
v1.9.12Compare Source
v1.9.11Compare Source
v1.9.10Compare Source
v1.9.9Compare Source
v1.9.8Compare Source
v1.9.7Compare Source
v1.9.6Compare Source
v1.9.5Compare Source
v1.9.4Compare Source
v1.9.3Compare Source
v1.9.2Compare Source
v1.9.1Compare Source
v1.9Compare Source
v1.8.19Compare Source
v1.8.18Compare Source
v1.8.17Compare Source
v1.8.16Compare Source
v1.8.15Compare Source
v1.8.14Compare Source
v1.8.13Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.