Skip to content

[Snyk] Security upgrade cryptography from 45.0.7 to 49.0.0 - #72

Open
leifj wants to merge 1 commit into
masterfrom
snyk-fix-e6b234f8c6f88a7b19d7a0fad99dd94a
Open

[Snyk] Security upgrade cryptography from 45.0.7 to 49.0.0#72
leifj wants to merge 1 commit into
masterfrom
snyk-fix-e6b234f8c6f88a7b19d7a0fad99dd94a

Conversation

@leifj

@leifj leifj commented Aug 4, 2026

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

  • example/requirements.txt
⚠️ Warning
oic 1.6.1 requires cryptography, which is not installed.
Flask 2.2.5 requires Werkzeug, 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:

🦉 Allocation of Resources Without Limits or Throttling

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-CRYPTOGRAPHY-18516622
@leifj

leifj commented Aug 4, 2026

Copy link
Copy Markdown
Author

Merge Risk: High

This upgrade from cryptography 45.0.7 to 49.0.0 spans multiple major versions and includes significant breaking changes that require both code and environment updates.

Key Breaking Changes:

  • Python Version Requirement: Support for Python 3.7 and 3.8 has been removed. This upgrade requires Python 3.9 or later. [1]
  • OpenSSL Version Requirement: Support for OpenSSL 1.1.x is removed. OpenSSL 3.0.0 or later is now required. [1]
  • API Removals: Several deprecated algorithms and modes have been removed and will cause code to fail if used:
    • TripleDES and ARC4 are removed from the cipher module as of v48.0.0. [2, 10]
    • CFB, OFB, and CFB8 are removed from the modes module as of v49.0.0. [2]
    • Camellia is removed from the cipher module as of v49.0.0. [2]
  • Elliptic Curve Support: Support for binary elliptic curves (SECT* classes) was removed in v47.0.0. [1]
  • Stricter Validation: As of v48.0.0, loading an X.509 CRL with a mismatched signature algorithm will now raise a ValueError. [1]

Recommendation:
Due to the multiple breaking changes, a careful review of your code is necessary. You must ensure your environment meets the new Python and OpenSSL version requirements. Any code using the removed ciphers or modes must be refactored. It is highly recommended to test this upgrade in a staging environment before deploying to production.

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