Skip to content

Conversation

@ayusuf-mq
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):

  • samples/openapi3/server/petstore/python-flask/requirements.txt

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.

…o reduce vulnerabilities

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

Merge Risk: High

This major version upgrade from 2.2.3 to 3.1.5 includes significant breaking changes. Numerous deprecated functions, classes, and modules have been removed, and core components like the test client and locals management have been refactored.

Highlights:

  • Removed Modules and Functions: The werkzeug.local module and many utility functions (like pbkdf2_hex, safe_str_cmp, cookie_date) have been removed. Code must be updated to use standard library alternatives (e.g., contextvars, hashlib, hmac).
  • Test Client Refactor: The test client now returns TestResponse objects instead of tuples. Tests that accessed response data via tuple indexing will need to be updated to use object properties.

Source: Werkzeug documentation
Recommendation: Review the official Werkzeug 3.0 changelog for a full list of removals. Pinning dependencies of frameworks that use Werkzeug (like Flask) to versions compatible with Werkzeug 3.x is critical.

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.

3 participants