Skip to content

Bump cryptography from 45.0.7 to 46.0.5#220

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/cryptography-46.0.5
Closed

Bump cryptography from 45.0.7 to 46.0.5#220
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/cryptography-46.0.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Feb 10, 2026

Copy link
Copy Markdown
Contributor

Bumps cryptography from 45.0.7 to 46.0.5.

Changelog

Sourced from cryptography's changelog.

46.0.5 - 2026-02-10


* An attacker could create a malicious public key that reveals portions of your
  private key when using certain uncommon elliptic curves (binary curves).
  This version now includes additional security checks to prevent this attack.
  This issue only affects binary elliptic curves, which are rarely used in
  real-world applications. Credit to **XlabAI Team of Tencent Xuanwu Lab and
  Atuin Automated Vulnerability Discovery Engine** for reporting the issue.
  **CVE-2026-26007**
* Support for ``SECT*`` binary elliptic curves is deprecated and will be
  removed in the next release.

.. v46-0-4:

46.0.4 - 2026-01-27

  • Dropped support for win_arm64 wheels_.
  • Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.5.5.

.. _v46-0-3:

46.0.3 - 2025-10-15


* Fixed compilation when using LibreSSL 4.2.0.

.. _v46-0-2:

46.0.2 - 2025-09-30

  • Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.5.4.

.. _v46-0-1:

46.0.1 - 2025-09-16


* Fixed an issue where users installing via ``pip`` on Python 3.14 development
  versions would not properly install a dependency.
* Fixed an issue building the free-threaded macOS 3.14 wheels.

.. _v46-0-0:

46.0.0 - 2025-09-16

  • BACKWARDS INCOMPATIBLE: Support for Python 3.7 has been removed.

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Feb 10, 2026
@rtibbles

rtibbles commented Mar 5, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

@rtibbles rtibbles requested a review from rtibblesbot March 5, 2026 22:03
Bumps [cryptography](https://github.com/pyca/cryptography) from 45.0.7 to 46.0.5.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](pyca/cryptography@45.0.7...46.0.5)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 46.0.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/cryptography-46.0.5 branch from 9436ed0 to e67e04a Compare March 5, 2026 22:04

@rtibblesbot rtibblesbot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dependency Update Review

Package: cryptography 45.0.7 → 46.0.5
Semver risk: Major
Dependency type: Production
CI status: In progress (Build Packages for PRs)

Changelog Analysis

Sources consulted:

Breaking changes:

  • Python 3.7 support removed (46.0.0) — not an issue, project uses Python 3.10
  • cffi dependency bumped to >=2.0.0 on Python ≥3.9 (46.0.1, commit 2726efd) — see blocking comment below
  • Dropped win_arm64 wheels (46.0.4) — unlikely to affect this project

Deprecations:

  • SECT* binary elliptic curves deprecated (46.0.5) — no direct cryptography imports in project source

Security fixes:

  • CVE-2026-26007: Malicious public key could reveal portions of private key when using uncommon binary elliptic curves. Fixed in 46.0.5.

Compatibility Assessment

  • Project uses affected APIs: No (cryptography is not directly imported in source)
  • Peer dependency changes: Yes — cffi ≥2.0.0 required on Python ≥3.9
  • Code changes required: Yes — cffi==1.14.4 pin in setup.py must be updated
  • Prior failed attempts: No

Recommendation

REQUEST_CHANGES — The cffi==1.14.4 pin in setup.py is incompatible with cryptography 46.0.5 on Python 3.9+. The cffi pin must be bumped to >=2.0.0 (or a specific compatible version) alongside this update. CI will likely fail during pip dependency resolution.


@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

How was this generated?

Reviewed the pull request diff checking for:

  • Correctness: bugs, edge cases, undocumented behavior, resource leaks, hardcoded values
  • Design: unnecessary complexity, naming, readability, comment accuracy, redundant state
  • Architecture: duplicated concerns, minimal interfaces, composition over inheritance
  • Testing: behavior-based assertions, mocks only at hard boundaries, accurate coverage
  • Completeness: missing dependencies, unupdated usages, i18n, accessibility, security
  • Principles: DRY (same reason to change), SRP, Rule of Three (no premature abstraction)
  • Checked CI status and linked issue acceptance criteria
  • For UI changes: inspected screenshots for layout, visual completeness, and consistency

Comment thread setup.py
install_requires=[
"wxPython==4.2.2",
"cryptography==45.0.7",
"cryptography==46.0.5",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

blocking: cryptography 46.0.5 requires cffi>=2.0.0 on Python ≥3.9 (PyPI metadata). This project uses Python 3.10, but cffi is pinned to 1.14.4 on line 36. pip will fail to resolve these conflicting requirements.

The fix is to also bump the cffi pin — e.g., cffi==1.17.1 (latest 1.x) or cffi==2.0.0 depending on compatibility with wxPython==4.2.2 and the rest of the dependency tree. Since dependabot won't update sibling pins, this likely needs a manual commit on this branch or a separate coordinated PR.

@dependabot @github

dependabot Bot commented on behalf of github Mar 28, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #228.

@dependabot dependabot Bot closed this Mar 28, 2026
@dependabot dependabot Bot deleted the dependabot/pip/cryptography-46.0.5 branch March 28, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants