Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions proj/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ apispec-webframeworks
tox
celery[redis]>=5.0.0
gunicorn
werkzeug>=3.1.5 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

This upgrade from Werkzeug 2.2.3 to 3.1.5 is a major version change (2.x to 3.x) that includes breaking changes. The warning messages in the PR description indicate that Flask 2.2.5 and Flask-JWT-Extended 4.6.0 both require Werkzeug but may not be compatible with version 3.x. To ensure compatibility, you should:

  1. Pin Flask to a version that supports Werkzeug 3.x (Flask >= 3.0.0 supports Werkzeug 3.x)
  2. Pin Flask-JWT-Extended to a compatible version (check compatibility with both Flask 3.x and Werkzeug 3.x)
  3. Test all Flask-related functionality thoroughly after this upgrade

Without explicit version constraints for Flask and its extensions, pip may install incompatible versions that could break the application at runtime.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The use of '>=' operator for Werkzeug allows future versions beyond 3.1.5, which could introduce additional breaking changes or compatibility issues. For critical security fixes, consider using a more restrictive constraint like 'werkzeug>=3.1.5,<4.0.0' to stay within the 3.x series while still receiving patch updates, or pin to a specific version range to avoid unexpected breaking changes in future major versions.

Suggested change
werkzeug>=3.1.5 # not directly required, pinned by Snyk to avoid a vulnerability
werkzeug>=3.1.5,<4.0.0 # not directly required, pinned by Snyk to avoid a vulnerability

Copilot uses AI. Check for mistakes.