[Snyk] Security upgrade django from 3.1.8 to 4.2.26 - #169
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-DJANGO-13836728 - https://snyk.io/vuln/SNYK-PYTHON-DJANGO-13837025
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Bug: Dependency Conflict Blocks Django Upgrade
Upgrading django to 4.2.26 creates a dependency conflict with asgiref==3.3.1. Django 4.2 requires asgiref>=3.3.2,<4, but the pinned version 3.3.1 is below this minimum requirement. This will cause installation failures or runtime errors when Django attempts to use incompatible asgiref functionality.
requirements.txt#L12-L13
Lines 12 to 13 in e8c2b65
| django-statsd==2.5.2 | ||
| # via -r requirements.in | ||
| django==3.1.8 | ||
| django==4.2.26 |
There was a problem hiding this comment.
Bug: Dependency Conflict Undoes Security Upgrade
The Django upgrade in requirements.txt is inconsistent with requirements.in, which still pins Django==3.1.8. Since requirements.txt is auto-generated by pip-compile requirements.in, running the compilation command will revert Django back to 3.1.8, undoing the security fix. The source file requirements.in must also be updated for the upgrade to persist.
Snyk has created this PR to fix 2 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements.txtImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 SQL Injection
Note
Upgrade Django from 3.1.8 to 4.2.26 in
requirements.txt.Written by Cursor Bugbot for commit e8c2b65. This will update automatically on new commits. Configure here.