Skip to content

[Snyk] Security upgrade cryptography from 2.3 to 46.0.5#196

Open
Abuchtela wants to merge 1 commit into
masterfrom
snyk-fix-e4464b4c937d4db5eb4561d79d16d6e3
Open

[Snyk] Security upgrade cryptography from 2.3 to 46.0.5#196
Abuchtela wants to merge 1 commit into
masterfrom
snyk-fix-e4464b4c937d4db5eb4561d79d16d6e3

Conversation

@Abuchtela

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/base.txt
⚠️ Warning
wiki 0.7.3 has requirement bleach<3.2,>=3.1.0, but you have bleach 6.0.0.
wiki 0.7.3 has requirement Django<3.2,>=2.1, but you have Django 3.2.25.
web3 4.5.0 has requirement websockets<6.0.0,>=5.0.1, but you have websockets 11.0.3.
web3 4.5.0 has requirement eth-account<0.4.0,>=0.2.1, but you have eth-account 0.5.9.
twilio 9.10.1 has requirement PyJWT<3.0.0,>=2.0.0, but you have PyJWT 1.5.3.
tweepy 4.14.0 has requirement requests-oauthlib<2,>=1.2.0, but you have requests-oauthlib 2.0.0.
social-auth-core 4.4.2 has requirement PyJWT>=2.0.0, but you have PyJWT 1.5.3.
rlp 3.0.0 has requirement eth-utils<3,>=2.0.0, but you have eth-utils 1.4.1.
PyGithub 1.54 has requirement requests<2.25,>=2.14.0, but you have requests 2.31.0.
mkdocs 1.2.3 has requirement watchdog>=2.0, but you have watchdog 0.9.0.
eth-testrpc 1.3.5 has requirement rlp<=0.6.0,>=0.4.7, but you have rlp 3.0.0.
eth-tester 0.9.1b2 has requirement eth-utils<3.0.0,>=2.0.0, but you have eth-utils 1.4.1.
eth-tester 0.9.1b2 has requirement eth-account>=0.6.0, but you have eth-account 0.5.9.
eth-tester 0.9.1b2 has requirement eth-abi>=3.0.1, but you have eth-abi 1.1.1.
eth-rlp 0.3.0 has requirement eth-utils<3,>=2.0.0, but you have eth-utils 1.4.1.
eth-keys 0.4.0 has requirement eth-typing<4,>=3.0.0, but you have eth-typing 2.3.0.
eth-keys 0.4.0 has requirement eth-utils<3.0.0,>=2.0.0, but you have eth-utils 1.4.1.
eth-account 0.5.9 has requirement eth-abi<3,>=2.0.0b7, but you have eth-abi 1.1.1.
eth-account 0.5.9 has requirement eth-keys<0.4.0,>=0.3.4, but you have eth-keys 0.4.0.
eth-account 0.5.9 has requirement rlp<3,>=1.0.0, but you have rlp 3.0.0.
elasticsearch 7.10.0 has requirement urllib3<2,>=1.21.1, but you have urllib3 2.0.7.
django-sekizai 3.0.1 has requirement django-classy-tags>=1, but you have django-classy-tags 0.8.0.
django-admin-sortable2 0.7.6 has requirement Django<3.1,>=1.8, but you have Django 3.2.25.
ddtrace 2.21.12 has requirement importlib-metadata<=6.5.0; python_version < "3.8", but you have importlib-metadata 6.7.0.
ccxt 4.5.38 has requirement aiohttp>=3.10.11; python_version >= "3.5.2", but you have aiohttp 3.8.6.
botocore 1.21.65 has requirement urllib3<1.27,>=1.25.4, but you have urllib3 2.0.7.

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-15263096
Copilot AI review requested due to automatic review settings February 16, 2026 02:44
@coderabbitai

coderabbitai Bot commented Feb 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-e4464b4c937d4db5eb4561d79d16d6e3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to upgrade the cryptography package from version 2.3 to 46.0.5 to address security vulnerabilities. This is a massive version jump spanning approximately 8 years of development and represents a high-risk change for a codebase with extensive Ethereum/Web3 integration.

Changes:

  • Upgrades cryptography from 2.3 to 46.0.5 in requirements/base.txt
  • Introduces numerous dependency conflicts with the existing web3/Ethereum stack

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread requirements/base.txt
ccxt
cryptocompare==0.6
cryptography==2.3
cryptography==46.0.5

Copilot AI Feb 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a major version upgrade from cryptography 2.3 to 46.0.5, which spans approximately 8 years of breaking changes. This upgrade is extremely risky and will likely cause compatibility issues with multiple dependencies in this project.

The following dependencies explicitly depend on older versions of cryptography or its related packages:

  • PyJWT 1.5.3 (line 25) is extremely old and may not be compatible with cryptography 46.x
  • eth-account 0.5.9 (line 62) and related Ethereum packages (eth-utils, eth-abi, eth-keys, rlp) have explicit version conflicts
  • Several other packages in the requirements have incompatible dependency chains

This upgrade should be accompanied by:

  1. Updating ALL related dependencies (especially PyJWT, eth-account, web3, and the entire Ethereum stack)
  2. Comprehensive testing of all cryptographic operations
  3. Review of all authentication, signing, and encryption functionality
  4. Testing of the Ethereum/Web3 integrations

The massive version jump makes this unsuitable for automated approval without extensive testing and validation.

Suggested change
cryptography==46.0.5
cryptography==2.3

Copilot uses AI. Check for mistakes.
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