Skip to content

[Snyk] Fix for 2 vulnerabilities#495

Open
robertatakenaka wants to merge 1 commit intomainfrom
snyk-fix-87d2793a1e52f41da5c90329b53ad90f
Open

[Snyk] Fix for 2 vulnerabilities#495
robertatakenaka wants to merge 1 commit intomainfrom
snyk-fix-87d2793a1e52f41da5c90329b53ad90f

Conversation

@robertatakenaka
Copy link
Copy Markdown
Member

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements/local.txt
⚠️ Warning
flake8 4.0.1 has requirement importlib-metadata<4.3; python_version < "3.8", but you have importlib-metadata 6.7.0.

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.

Copilot AI review requested due to automatic review settings January 12, 2026 10:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes 2 security vulnerabilities in Python dependencies identified by Snyk: urllib3 and Werkzeug. The changes upgrade Werkzeug from version 2.2.3 to 3.1.5 and add a new urllib3 dependency pinned to version 2.6.3 or higher.

Changes:

  • Upgraded Werkzeug from 2.2.3 to 3.1.5 (major version bump)
  • Added urllib3>=2.6.3 as a pinned transitive dependency to address security vulnerabilities

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread requirements/local.txt
-r base.txt

Werkzeug==2.2.3 # https://github.com/pallets/werkzeug
Werkzeug==3.1.5 # https://github.com/pallets/werkzeug
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

Upgrading Werkzeug from 2.2.3 to 3.1.5 is a major version upgrade that may contain breaking changes. Werkzeug 3.0 introduced several breaking changes including removal of deprecated APIs and changes to request/response handling. While no direct usage of Werkzeug was found in the codebase, this is a transitive dependency likely used by Flask or other web frameworks. Ensure that all frameworks and libraries depending on Werkzeug are compatible with version 3.x, and verify that tests pass before merging.

Suggested change
Werkzeug==3.1.5 # https://github.com/pallets/werkzeug
Werkzeug==2.2.3 # https://github.com/pallets/werkzeug

Copilot uses AI. Check for mistakes.
Comment thread requirements/local.txt
django-extensions==3.2.1 # https://github.com/django-extensions/django-extensions
django-coverage-plugin==2.0.2 # https://github.com/nedbat/django_coverage_plugin
pytest-django==4.5.2 # https://github.com/pytest-dev/pytest-django
urllib3>=2.6.3 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

The urllib3 security fix is only applied to local.txt (development environment) but not to production.txt. If urllib3 is a transitive dependency used in production, the production environment may remain vulnerable. Consider adding the same urllib3 pinning to requirements/production.txt to ensure the security fix is applied across all environments.

Copilot uses AI. Check for mistakes.
Comment thread requirements/local.txt
django-extensions==3.2.1 # https://github.com/django-extensions/django-extensions
django-coverage-plugin==2.0.2 # https://github.com/nedbat/django_coverage_plugin
pytest-django==4.5.2 # https://github.com/pytest-dev/pytest-django
urllib3>=2.6.3 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

The version specification for urllib3 uses ">=" while all other dependencies in this file use "==". This is inconsistent with the project's dependency pinning pattern. Consider using "urllib3==2.6.3" instead to ensure reproducible builds and prevent unexpected behavior from future patch releases.

Suggested change
urllib3>=2.6.3 # not directly required, pinned by Snyk to avoid a vulnerability
urllib3==2.6.3 # not directly required, pinned by Snyk to avoid a vulnerability

Copilot uses AI. Check for mistakes.
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.

3 participants