Skip to content

build(deps): bump cryptography from 49.0.0 to 50.0.0 - #26

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

build(deps): bump cryptography from 49.0.0 to 50.0.0#26
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/cryptography-50.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 5, 2026

Copy link
Copy Markdown

Bumps cryptography from 49.0.0 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 dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Aug 5, 2026

@gcalpay gcalpay left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Technical review context for follow-up verification; no approval or merge decision is being made here.

I reviewed the current diff, current CI state, and the upstream cryptography 50.0.0 changelog. This PR is lockfile-only, but it is a major-version update and therefore deserves more scrutiny than an ordinary patch bump.

The direct resolved dependency changes are:

  • cryptography 49.0.0 -> 50.0.0
  • marker changes around cffi/pycparser
  • additional marker normalization for transitive packages such as importlib-metadata, scipy, and secretstorage

Current PR-head CI is fully green: Verify, CodeQL, and Dependency audit all completed successfully.

Important upstream context:

  • cryptography 50.0.0 fixes CVE-2026-69247, a PKCS#7 decryption side-channel/Bleichenbacher-oracle issue
  • finite-field Diffie-Hellman APIs are deprecated
  • several X.509/DER/OCSP parsing paths become stricter
  • the release includes other API additions and backend changes

The security fix is a reason in favor of moving forward, but the major-version boundary means the absence of failing tests is not sufficient by itself. Codex should verify whether Carnopy directly imports cryptography at all or receives it only transitively, identify which top-level package pulls it into the lockfile, and confirm that Carnopy does not rely on deprecated FFDH APIs or on parsing behavior that is intentionally stricter in 50.0.0. It should also verify that the lockfile marker changes are expected consequences of the new metadata rather than unrelated resolution churn.

I found no blocking defect in the current diff or CI, and no source files are changed. If Codex confirms that cryptography is only a compatible transitive dependency (or that any direct use avoids the affected deprecated/stricter APIs), this update has a strong case because it carries a security fix. Do not merge solely on that basis without the dependency-path check.

@gcalpay
gcalpay self-requested a review August 12, 2026 02:47
@gcalpay

gcalpay commented Aug 12, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

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

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/cryptography-50.0.0 branch from c1743ec to 42a9ff3 Compare August 12, 2026 03:04
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