-
Notifications
You must be signed in to change notification settings - Fork 7
[Snyk] Security upgrade django from 3.2.25 to 4.2.28 #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,4 +16,5 @@ django-anymail # https://github.com/anymail/django-anymail | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| # Elastic-APM # https://pypi.org/project/elastic-apm/ | ||||||||||||||||||||||
| # ------------------------------------------------------------------------------ | ||||||||||||||||||||||
| elastic-apm==6.15.1 | ||||||||||||||||||||||
| elastic-apm==6.15.1 | ||||||||||||||||||||||
| django>=4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability | ||||||||||||||||||||||
|
||||||||||||||||||||||
| django>=4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability | |
| django<4.2 # constrained to remain compatible with wagtail==4.2.2 from base.txt |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of >= instead of == for version pinning creates unpredictable behavior. With >=4.2.28, pip could install any future Django version (e.g., 4.2.29, 4.3.x, 5.x), which may introduce breaking changes or incompatibilities.
For production dependencies, use exact version pinning with == to ensure reproducible builds. Change to django==4.2.28 instead.
| django>=4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability | |
| django==4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment "# pyup: < 4.0" in base.txt line 15 indicates that the project is intentionally configured to prevent automatic upgrades to Django 4.x. Upgrading to Django 4.2.28 in production.txt contradicts this configuration and suggests that the upgrade strategy needs to be coordinated across all requirements files and the pyup configuration should be updated accordingly.
| elastic-apm==6.15.1 | |
| django>=4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability | |
| elastic-apm==6.15.1 |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical dependency conflict: This PR adds django>=4.2.28 to production.txt, but base.txt (which is included via -r base.txt on line 3) explicitly pins django==4.1.6. This will cause pip to fail during installation with a conflict error.
The base.txt file needs to be updated to django==4.2.28 (or higher) to resolve this conflict. Additionally, using >= is problematic because it allows unpredictable upgrades - use == for pinned versions to ensure reproducible builds.
| elastic-apm==6.15.1 | |
| django>=4.2.28 # not directly required, pinned by Snyk to avoid a vulnerability | |
| elastic-apm==6.15.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent line formatting: A blank line was removed before
elastic-apm==6.15.1, breaking the visual separation pattern used throughout the requirements files. The blank line should be preserved to maintain consistency with the file's formatting conventions.