Skip to content

Bump cryptography from 46.0.7 to 50.0.1 and msal from 1.36.0 to 1.38.0 - #1185

Merged
umbertoDifa merged 1 commit into
masterfrom
dependabot/pip/cryptography-50.0.0
Sep 1, 2026
Merged

umbertoDifa merged 1 commit into
masterfrom
dependabot/pip/cryptography-50.0.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps cryptography from 46.0.7 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 the dependencies Pull requests that update a dependency file label Aug 5, 2026
@cursor

cursor Bot commented Aug 5, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Major cryptography upgrade on the Azure/GCP auth path is security-positive but can affect runtime crypto behavior; scope is limited to optional storage extras and the lockfile.

Overview
Updates poetry.lock only (no application code): cryptography is resolved from 46.0.7 to 50.0.1, and msal from 1.36.0 to 1.38.0 so Azure storage extras stay compatible with the newer crypto stack.

These packages are pulled in for optional storage-azure, storage-gcp, and storage-all installs (e.g. azure-identity / google-auth). The lockfile also reflects a Poetry re-resolve (marker ordering and generator version comment), not intentional dependency policy changes in pyproject.toml.

The cryptography jump includes the CVE-2026-69247 fix for PKCS#7 decryption oracle behavior, plus stricter X.509/PKCS parsing in the 50.x line—worth noting if anything decrypts untrusted PKCS#7 or relies on previously lenient ASN.1 behavior.

Reviewed by Cursor Bugbot for commit 83f6aa6. Configure here.

Comment thread poetry.lock
@dependabot
dependabot Bot force-pushed the dependabot/pip/cryptography-50.0.0 branch from b083249 to e3240c5 Compare September 1, 2026 09:24

@umbertoDifa umbertoDifa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Address bugbot

@umbertoDifa
umbertoDifa force-pushed the dependabot/pip/cryptography-50.0.0 branch from 3969c5c to 83f6aa6 Compare September 1, 2026 13:46
@umbertoDifa

Copy link
Copy Markdown
Collaborator

bugbot run

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 83f6aa6. Configure here.

@umbertoDifa umbertoDifa changed the title Bump cryptography from 46.0.7 to 50.0.0 Bump cryptography from 46.0.7 to 50.0.1 and msal from 1.36.0 to 1.38.0 Sep 1, 2026
Lockfile regenerated with poetry. msal 1.36.0 requires cryptography >=2.5,<49,
so cryptography 50.x also requires msal >=1.38.0 (cryptography <51). Optional
flags and storage extras markers are preserved.
@umbertoDifa

Copy link
Copy Markdown
Collaborator

bugbot run

@umbertoDifa
umbertoDifa force-pushed the dependabot/pip/cryptography-50.0.0 branch from 83f6aa6 to 96f01cf Compare September 1, 2026 14:24

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 83f6aa6. Configure here.

@umbertoDifa umbertoDifa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lockfile regenerated with poetry: cryptography 50.0.1 + msal 1.38.0 (msal 1.36.0 caps cryptography <49, so the bump is required for a satisfiable lock). Verified only these two packages change vs master, optional flags and storage extras markers preserved. Full CI green.

@umbertoDifa
umbertoDifa merged commit 33b4a3d into master Sep 1, 2026
21 checks passed
@umbertoDifa
umbertoDifa deleted the dependabot/pip/cryptography-50.0.0 branch September 1, 2026 14:58
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant