Skip to content

Bump cryptography from 48.0.1 to 50.0.0 - #69

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/uv/cryptography-50.0.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/uv/cryptography-50.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Bumps cryptography from 48.0.1 to 50.0.0.

Changelog

Sourced from cryptography's changelog.

50.0.0 - 2026-07-31


* **SECURITY ISSUE**:
  :func:`~cryptography.hazmat.primitives.serialization.pkcs7.pkcs7_decrypt_der`
  and its PEM and S/MIME variants no longer expose distinguishable errors or
  timing when unwrapping a ``RecipientInfo``'s ``encryptedKey``, which could
  act as a Bleichenbacher oracle for callers that decrypt untrusted messages.
  A random key is now substituted on failure, as described in :rfc:`3218`.
  Credit to **@X1AOxiang** for reporting the issue. **CVE-2026-69247**
* Deprecated Diffie-Hellman key exchange over finite fields (FFDH).
  Everything FFDH is deprecated, including the types in
  ``cryptography.hazmat.primitives.asymmetric.dh`` and loading FFDH keys or
  parameters with the key loading APIs. Users should migrate to a more
  modern key exchange algorithm.
* Added ``xof()`` class methods to
  :class:`~cryptography.hazmat.primitives.hashes.SHAKE128` and
  :class:`~cryptography.hazmat.primitives.hashes.SHAKE256` for constructing
  algorithm instances configured for use with
  :class:`~cryptography.hazmat.primitives.hashes.XOFHash`.
* The :mod:`X.509 verification <cryptography.x509.verification>` APIs are now
  considered stable and are subject to our API stability policy.
* Added the :doc:`/cobblestone` recipe, an implementation of the
  Cobblestone-128 and Cobblestone-256 instantiations of the `C2SP
  chunked-encryption specification
  <https://c2sp.org/chunked-encryption>`_ for streaming authenticated
  encryption of large messages.
* Parsing a Signed Certificate Timestamp list now rejects encodings that
  carry trailing bytes after the list or after an individual SCT, instead of
  silently ignoring them.
* Added support for using :class:`~cryptography.x509.Name` as a field type in
  the :doc:`/hazmat/asn1/index` module.
* Loading a public key or an EC private key now rejects DER where the
  ``subjectPublicKey`` (or EC ``publicKey``) ``BIT STRING`` declares a non-zero
  number of unused bits, instead of silently ignoring it.
* Parsing a CRL entry's ``InvalidityDate`` extension now rejects a
  ``GeneralizedTime`` that carries fractional seconds or another non-DER form,
  matching the strict encoding already required for every other X.509 time
  field.
* :func:`~cryptography.x509.ocsp.load_der_ocsp_request` and
  :func:`~cryptography.x509.ocsp.load_der_ocsp_response` now reject a request
  or response whose ``version`` field is not ``v1``, the only version defined
  by RFC 6960, matching the version validation already performed when loading
  certificates, CSRs and CRLs.
* :class:`~cryptography.hazmat.primitives.hashes.XOFHash` is now supported
  when building against AWS-LC.
* HMAC (and therefore PBKDF2-HMAC) with SHA-3 hashes is now supported when
  building against AWS-LC.
* Diffie-Hellman (:doc:`/hazmat/primitives/asymmetric/dh`) is now supported
  when building against AWS-LC.
</tr></table> 

... (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)

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

Bumps [cryptography](https://github.com/pyca/cryptography) from 48.0.1 to 50.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](pyca/cryptography@48.0.1...50.0.0)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Aug 4, 2026
@kingfink

Copy link
Copy Markdown
Owner

workshop prepare: needs-info at 5a99a61e817427943ea07afcd88cc451b14766dd against 4bedb8747dd14c459f47cca77493182840d0e324.

Resolved the reported merge conflict (merge_conflicts: true) by merging the PR base's current master tip into this branch, keeping cryptography==50.0.0 from this PR alongside master's other dependency bumps (fastmcp 3.4.5, ruff 0.16.1, pytest 9.1.1, certifi 2026.10.23, pydantic-settings, actions/setup-node v7) in pyproject.toml/uv.lock. uv.lock was hand-merged (network/PyPI unreachable in this sandbox, so uv lock could not regenerate it) and verified consistent via uv lock --locked --offline (Resolved 87 packages, no diff). Diagnosed the 'Run pytest' failure without needing the unavailable logs: tests/test_release_automation.py::test_project_pins_cryptography_to_a_macos_universal2_wheel_release (added in c7a866a) intentionally pins cryptography to the 48.x series because cryptography 49+ dropped the macOS universal2 wheel for an arm64-only wheel, which forces Intel Macs installing via uvx/pip to build from source with a Rust toolchain. The PR's diff confirms cryptography 50.0.0 ships no universal2 or x86_64 macOS wheel (only macosx_11_0_arm64), reproducing exactly the regression this guard test exists to block. This is the platform-support decision the prepare-pr skill flags as needs-info, not a code defect: accepting the bump as-is would silently drop zero-build-tool installs on Intel Macs. Owner needs to choose: (1) accept dropping that Intel Mac install guarantee, relax/update the guard test, and keep cryptography==50.0.0, or (2) keep the existing 48.x pin and close this Dependabot PR. Local checks: git ls-files '*.py' -z | xargs -0 python3 -m py_compile passes on the merged head. Could not run ruff check, ruff format --check, or pytest locally — this sandbox has no network access (PyPI unreachable) and no cached wheels for the project's dev dependencies, so uv sync --extra dev cannot complete offline; GitHub CI already reports lint/format and compile passing on this branch, and pytest will need a fresh CI run on the new merge commit once the owner decides the cryptography question.

GitHub checks: unverified.

@kingfink

Copy link
Copy Markdown
Owner

Superseded by #71

@kingfink kingfink closed this Nov 21, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/uv/cryptography-50.0.0 branch November 21, 2026 17:53
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:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant