Skip to content

[Snyk] Security upgrade cryptography from 45.0.7 to 46.0.6#23

Open
msant262 wants to merge 1 commit intomainfrom
snyk-fix-84d8bf21c71918d7c790fb807f8476d8
Open

[Snyk] Security upgrade cryptography from 45.0.7 to 46.0.6#23
msant262 wants to merge 1 commit intomainfrom
snyk-fix-84d8bf21c71918d7c790fb807f8476d8

Conversation

@msant262
Copy link
Copy Markdown

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):

  • supply_chain_security/requirements.txt
⚠️ Warning
jwt 1.3.1 requires cryptography, which is not installed.

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.

@msant262
Copy link
Copy Markdown
Author

Merge Risk: High

This major version upgrade of cryptography introduces several breaking changes that require developer action.

Breaking Changes:

  • Minimum RSA Key Size: The generate_private_key() function now enforces a minimum key size of 1024 bits for RSA keys. Attempts to generate smaller keys will fail. The library authors note that 2048-bits is the recommended secure size.
  • Moved Ciphers: The CAST5, SEED, IDEA, and Blowfish ciphers have been moved to the new cryptography.hazmat.decrepit.ciphers module. These were deprecated in version 37.0.0 and removed from the main cipher module in version 45.0.0.
  • Build from Source: For users who build the package from source against a custom OpenSSL library, the environment variables used for linking (CFLAGS, LDFLAGS, etc.) are no longer supported and have been replaced by a new configuration method.

Environment Changes:

  • LibreSSL: Support for LibreSSL versions older than 3.8 has been dropped.
  • OpenSSL: The pre-compiled wheels now bundle OpenSSL 3.3.1. Support for OpenSSL versions older than 1.1.1e has been removed.

Recommendation:

  • Review any code using generate_private_key() to ensure it meets the new minimum key size requirement.
  • Update import paths for any code still using the CAST5, SEED, IDEA, or Blowfish ciphers.
  • Verify your build environment if you compile cryptography from source with a custom OpenSSL version.

Source: Cryptography 46.0.0 Changelog

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

@msant262
Copy link
Copy Markdown
Author

msant262 commented Mar 29, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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