Skip to content

[Snyk] Security upgrade werkzeug from 2.2.3 to 3.1.6#7

Open
dan-storable wants to merge 1 commit intomasterfrom
snyk-fix-f508d93790e1abe61ce36cb8358dcaf4
Open

[Snyk] Security upgrade werkzeug from 2.2.3 to 3.1.6#7
dan-storable wants to merge 1 commit intomasterfrom
snyk-fix-f508d93790e1abe61ce36cb8358dcaf4

Conversation

@dan-storable
Copy link

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements.txt

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


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.

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-15322677
@dan-storable
Copy link
Author

Merge Risk: High

This major version upgrade from Werkzeug 2.x to 3.x introduces significant breaking changes, primarily by removing code that was deprecated in previous versions. Direct action will be required to adapt to these changes.

Key Breaking Changes in v3.0.0:

  • Python 3.7 Support Dropped: Support for Python 3.7 was dropped in version 2.3.0, which is part of this upgrade path.
  • Removed Deprecated APIs: A significant amount of previously deprecated code has been removed. This includes:
    • Request.disable_data_descriptor: Use shallow=True instead.
    • has_key method on mapping data structures: Use the in operator (key in data) instead.
    • locals.get_ident: This has been removed as the underlying implementation moved to contextvars.
  • Test Client Behavior Change: The test client no longer returns a tuple. It now returns a TestResponse object, and data must be accessed via its properties. This will break tests that unpack the client's response.
  • CLI Removed: The command line interface python -m werkzeug.serving has been removed.

Recommendation:
This upgrade requires careful code review and refactoring. Pay close attention to test suites that use the test client and any code that might be using previously deprecated functions. It is highly recommended to consult the official changelog before merging.

Source: Werkzeug Changelog

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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