Skip to content

[Snyk] Security upgrade cryptography from 3.4.7 to 46.0.6 - #6

Open
ryanmcmorrowsnyk wants to merge 1 commit into
mainfrom
snyk-fix-afd1b9c384f8190153c04e0fdf8244b5
Open

[Snyk] Security upgrade cryptography from 3.4.7 to 46.0.6#6
ryanmcmorrowsnyk wants to merge 1 commit into
mainfrom
snyk-fix-afd1b9c384f8190153c04e0fdf8244b5

Conversation

@ryanmcmorrowsnyk

Copy link
Copy Markdown
Owner

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
⚠️ Warning
inflect 6.0.5 has requirement pydantic<2,>=1.9.1, but you have pydantic 1.8.2.
graphql-relay 3.1.0 has requirement typing-extensions<4,>=3.7; python_version < "3.8", but you have typing-extensions 4.7.1.
google-api-core 1.34.1 has requirement protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<4.0.0dev,>=3.19.5, but you have protobuf 4.24.4.

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-CRYPTOGRAPHY-15809188
@ryanmcmorrowsnyk

Copy link
Copy Markdown
Owner Author

Merge Risk: High

This is a massive upgrade, jumping from version 3.4.7 to 46.0.6. This range covers dozens of major releases and introduces significant breaking changes, primarily related to the build environment and supported runtimes.

Key Breaking Changes:

  • Python Version: Support for Python 3.6 was dropped in version 40.0.0, and support for Python 3.7 was dropped in version 46.0.0. The target version requires Python 3.8 or newer.
  • OpenSSL Requirement: Support for OpenSSL versions below 1.1.1d was removed in version 40.0.0. Furthermore, support for OpenSSL versions below 3.0 is now deprecated as of 46.0.0, and pre-compiled wheels are built against OpenSSL 3.x. Environments building from source will need to ensure a compatible OpenSSL version is available.
  • Rust Compiler: Building cryptography from source requires a Rust compiler. The minimum supported Rust version (MSRV) has been increased multiple times, from 1.41 in the original version to 1.56 in v40.0.0 and higher in subsequent releases.
  • API Removals: Support for binary elliptic curves (SECT* classes) was deprecated in version 46.0.5 and will be removed in a future release due to security considerations and infrequent use.

Recommendation: Due to the extensive changes across numerous versions, this upgrade must be handled with extreme care. Developers should verify their application in a test environment that matches the new requirements (Python 3.8+, modern OpenSSL/Rust for source builds). Code using advanced or now-deprecated APIs will require refactoring.

Source: Cryptography 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