Skip to content

[Snyk] Security upgrade django from 3.2.25 to 5.2.15#81

Open
Dustin4444 wants to merge 1 commit into
mainfrom
snyk-fix-4145546568f73d4d4d2cae97a41312dc
Open

[Snyk] Security upgrade django from 3.2.25 to 5.2.15#81
Dustin4444 wants to merge 1 commit into
mainfrom
snyk-fix-4145546568f73d4d4d2cae97a41312dc

Conversation

@Dustin4444

@Dustin4444 Dustin4444 commented Jun 6, 2026

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 5 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • requirements.txt
⚠️ Warning
drf-spectacular 0.29.0 requires jsonschema, which is not installed.
django-tastypie 0.15.1 requires python-mimeparse, which is not installed.
celery 5.3.0 requires kombu, which is not installed.

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


This change is Reviewable

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
datatracker Error Error Jun 6, 2026 6:13am

@changeset-bot

changeset-bot Bot commented Jun 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dfa0c9c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • 'feature'

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 88369f93-6c08-4c17-929b-b1a59d90c6af

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch snyk-fix-4145546568f73d4d4d2cae97a41312dc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@snyk-io

snyk-io Bot commented Jun 6, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades the Django dependency in requirements.txt from version 4.2.x to 5.2.15. The review feedback correctly points out that this upgrade will cause build and runtime failures due to dependency conflicts with django-stubs and the removal of deprecated settings and classes (such as USE_DEPRECATED_PYTZ, USE_L10N, and DjangoDivFormRenderer) in the project configuration.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread requirements.txt
coverage>=7.9.2
defusedxml>=0.7.1 # for TastyPie when using xml; not a declared dependency
Django>=4.2.30,<5
Django>=5.2.15

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Upgrading Django to >=5.2.15 introduces several compatibility issues with the current project configuration and dependencies:

  1. Dependency Conflict: django-stubs is pinned to >=4.2.7,<5 (line 30), which is incompatible with Django 5.x. You will need to upgrade django-stubs to a version that supports Django 5.x.
  2. Removed Settings in ietf/settings.py:
    • USE_DEPRECATED_PYTZ (line 147) was completely removed in Django 5.0. This will cause a runtime configuration error. The project must be migrated to use standard zoneinfo instead of pytz.
    • USE_L10N (line 144) was also removed in Django 5.0.
  3. Form Renderers: DjangoDivFormRenderer (line 153) was a transitional class in Django 4.x and is no longer needed or supported in Django 5.x where div.html is the default.

These settings and dependencies must be updated in tandem with this Django upgrade to prevent build and runtime failures.

@snyk-io

snyk-io Bot commented Jun 6, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants