Skip to content

Bump cryptography from 46.0.5 to 50.0.0 - #730

Merged
leq-bot merged 1 commit into
mainfrom
dependabot/uv/cryptography-50.0.0
Nov 2, 2026
Merged

leq-bot merged 1 commit into
mainfrom
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 46.0.5 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

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:uv Pull requests that update python:uv code labels Aug 4, 2026
@rtibblesbot

rtibblesbot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Waiting for changes

Outcome: reviewed f580fd5

Last updated: 2026-11-02 04:16 UTC

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

PR #730 — cryptography 46.0.5 → 50.0.0 (claimed), multi-major, transitive production dependency via the google_drive extra. CI passing (15/15). Requesting changes because the lockfile does not do what the title says.

What the lockfile actually does: cryptography is removed entirely (grep -c cryptography uv.lock → 0), google-auth is downgraded 2.49.1 → 2.47.0, and rsa 4.9.1 is re-added. No cryptography entry exists at any version after this change.

 [[package]]
 name = "google-auth"
-version = "2.49.1"
+version = "2.47.0"
 dependencies = [
-    { name = "cryptography" },
     { name = "pyasn1-modules" },
+    { name = "rsa" },
 ]

Root cause: cryptography 50.0.0 was published 2026-07-31, inside the repo's rolling exclude-newer = "7 days" cooldown (pyproject.toml:86). Dependabot doesn't apply that cooldown when picking a target, so uv couldn't select 50.0.0 and instead found a resolution where cryptography isn't required at all — reachable only by walking google-auth back to 2.47.0, the last release where cryptography is an extra rather than a hard requirement (2.49.1 lists cryptography>=38.0.3 unconditionally; 2.47.0 lists rsa<5,>=3.1.4 + cryptography>=38.0.3; extra == "cryptography").

Regression this hides: google-auth 2.48.0 added cryptography as a required dependency and 2.49.0 removed the deprecated rsa dependency. Reverting to 2.47.0 puts RSA signature verification for Google service-account credentials back on pure-Python rsa, and drops the 2.48/2.49 fixes (NO_GCE_CHECK handling, configurable GCE metadata retries, mTLS IAM domain support, circular-import fix). google-auth ships to users via the google_drive extra (pyproject.toml:50) and is exercised by the Google Drive transfer handler — production surface, not dev-only.

CI green is not evidence here. CI does install the extra (.github/workflows/pythontest.yml:127), so it confirms google-auth 2.47.0 + rsa still work. It says nothing about whether dropping cryptography was correct: nothing in the suite requires cryptography to be installed. The only reference is tests/pipeline/test_transfer.py:74-92, a generate_test_private_key() helper that is never called and swallows the ImportError.

Security context: the 50.0.0 fix is CVE-2026-69247, a Bleichenbacher oracle in pkcs7_decrypt_der and its PEM/S-MIME variants. Neither ricecooker nor google-auth's credential code decrypts untrusted PKCS#7, so there's no reachable exposure and no urgency to force-land 50.0.0.

Suggested resolution: close this PR and either re-run dependabot after 2026-08-07 when 50.0.0 clears the cooldown, or land the natural upgrade deliberately. On main, uv lock --upgrade-package cryptography resolves cleanly, keeps google-auth at 2.49.1, introduces no rsa, and splits by marker:

{ name = "cryptography", version = "47.0.0", marker = "python_full_version <= '3.9'" },
{ name = "cryptography", version = "49.0.0", marker = "python_full_version > '3.9'" },

If taking that path, note two BACKWARDS INCOMPATIBLE entries in 49.0.0 — x86_64 macOS support removed, 32-bit Windows support removed. CI runners are unaffected (macos-latest is arm64, windows-latest is x64); the exposure is Intel-Mac chef authors installing ricecooker[google_drive] on Python ≥ 3.10, who would need to build from source. No API-level breaking change in 47.0.0–50.0.0 touches this project — there are no direct cryptography imports outside the dead test helper.

Separately worth checking: .github/dependabot.yml:11 sets cooldown.default-days: 7 for the uv ecosystem, matching exclude-newer, yet this PR was opened for a 4-day-old release. If dependabot's cooldown isn't honoured for uv, this failure mode recurs on every fast-moving transitive dependency — and each recurrence looks like a normal green bump.


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

How was this generated?

Ran a dependency-update review pipeline over the version bump:

  • Classified the bump by semver (patch / minor / major) and dependency type (production vs. development)
  • Extracted the changelog and release notes across the version range
  • Assessed compatibility with this project's usage and whether any code changes are required
  • Treated CI as the primary safety net
  • Scaled the review depth to the update's risk
  • Chose the verdict from semver risk, changelog findings, and CI status

@rtibbles

rtibbles commented Aug 8, 2026

Copy link
Copy Markdown
Member

@dependabot recreate

@dependabot
dependabot Bot force-pushed the dependabot/uv/cryptography-50.0.0 branch from 9fe4c80 to a62ca31 Compare August 8, 2026 05:26

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

PR #730 — cryptography 46.0.5 → 50.0.0 (major, 4 majors; transitive production dep via google-auth). CI green (19/19). 1 of 2 prior findings resolved; 1 still open.

Changelog across 47–50: no API change touches this project (no direct cryptography imports outside the dead generate_test_private_key() helper in tests/pipeline/test_transfer.py). Two BACKWARDS INCOMPATIBLE entries in 49.0.0 — x86_64 macOS and 32-bit Windows support dropped — don't affect CI runners (macos-latest is arm64, windows-latest is x64). Security: 50.0.0 is the CVE fix this bump exists for.

[blocking] uv.lock:537 — the cryptography==50.0.0 pin downgrades google-auth and re-adds rsa on Python ≤ 3.9

The lockfile forks google-auth: 2.47.0 for python_full_version <= '3.9', 2.49.1 above. cryptography appears once at 50.0.0 (uv.lock:340), referenced only by the 2.49.1 branch (uv.lock:563). 2.47.0 is the last release where cryptography is an extra rather than a hard requirement, so the 3.9 fork gets no cryptography at all and pulls in rsa 4.9.1 (uv.lock:2342), a package main does not have — pure-Python RSA verification for Google service-account credentials, and no CVE fix.

This is now avoidable. 50.0.0 published 2026-07-31T14:23Z; the repo's exclude-newer = "7 days" cooldown cleared it 2026-08-07T14:23Z. Running the natural upgrade on main (uv 0.12.3, same cooldown):

$ uv lock --upgrade-package cryptography
Resolved 151 packages in 2.01s
Updated cryptography v46.0.5 -> v47.0.0, v50.0.0

Diffed against this PR's lockfile, the only differences are: rsa 4.9.1 and google-auth 2.47.0 present only here, cryptography 47.0.0 present only in the natural resolve. That keeps google-auth at 2.49.1 everywhere, adds no rsa, and covers the ≤ 3.9 fork with 47.0.0. Dependabot can't reach it because it pins cryptography==50.0.0 across the whole resolution and so can't pick a lower version inside the 3.9 fork.

Suggested resolution: close this PR and land uv lock --upgrade-package cryptography from main. Same 50.0.0 above 3.9, no google-auth regression, no new rsa.

CI passing on all three Python 3.9 jobs confirms 2.47.0 + rsa still work, not that dropping cryptography on 3.9 is correct — nothing in the suite requires it to be importable.

Prior-finding status

RESOLVED — uv.lock — cryptography removed from the lockfile entirely at every version
UNADDRESSED — uv.lock:537 — google-auth downgraded 2.49.1 → 2.47.0 and rsa 4.9.1 re-added; now scoped to Python ≤ 3.9, and now avoidable since 50.0.0 cleared the exclude-newer cooldown
UNADDRESSED — .github/dependabot.yml:11 — cooldown.default-days: 7 appears not to be honoured for the uv ecosystem; out of scope for this branch diff, but the failure mode recurs on every fast-moving transitive dependency


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

How was this generated?

Ran a dependency-update review pipeline over the version bump:

  • Classified the bump by semver (patch / minor / major) and dependency type (production vs. development)
  • Extracted the changelog and release notes across the version range
  • Assessed compatibility with this project's usage and whether any code changes are required
  • Treated CI as the primary safety net
  • Scaled the review depth to the update's risk
  • Chose the verdict from semver risk, changelog findings, and CI status

@rtibblesbot

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/uv/cryptography-50.0.0 branch from a62ca31 to 616bc28 Compare October 10, 2026 10:50
@dependabot
dependabot Bot requested review from a team and leq-bot October 10, 2026 10:50

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

PR #730: CI fails on every job. The lockfile now changes only cryptography. 2 of 3 prior findings are resolved; the open one is outside this diff and not re-raised.

  • Package: cryptography 46.0.5 → 50.0.0
  • Semver risk: major (47–50)
  • Type: transitive production dependency, via google-auth 2.49.1 (google_drive extra)
  • Breaking changes: 49.0.0 drops x86_64 macOS and 32-bit Windows wheels. No CI runner uses either. The new cffi>=2.0.0 requirement is already met. cryptography.hazmat.backends, which google-auth imports, still exists.
  • Security: fixes CVE-2026-69247 (PKCS#7 decrypt oracle). ricecooker doesn't reach that code path.
  • CI: failing (run 38046328408)

blocking — CI fails on every job:

  • All 14 Python unit tests jobs fail in Run tests after 23–49s.
  • Read the Docs also fails.
  • main at the base (0e94e939) is green.
  • Failing this fast on every OS suggests a sync or test-collection error. The agent's sandbox couldn't read the logs.
  • Please open any one Run tests log and act on it:
    • uv sync or download error: re-run CI.
    • ImportError or test failure involving cryptography/google.auth: fix the code before merging.
Prior-finding status

RESOLVED — uv.lock — cryptography removed from the lockfile entirely at every version
RESOLVED — uv.lock:537 — google-auth downgraded 2.49.1 → 2.47.0 and rsa 4.9.1 re-added on Python ≤ 3.9
UNADDRESSED — .github/dependabot.yml:11 — cooldown.default-days: 7 not honoured for the uv ecosystem


Written by rtibblesbot, an LLM-based coding agent.

@rtibbles
rtibbles requested a review from rtibblesbot October 18, 2026 02:46

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

PR #730: CI fails for a reason unrelated to this bump; approve once a run on top of main is green.

2 of 4 prior findings resolved; 1 contested, 1 out of scope (see below).

  • Package: cryptography 46.0.5 → 50.0.0, major.
  • Type: production, transitive via google-auth (google_drive extra).
  • Lockfile: only cryptography changes.
  • Breaking changes: 49.0.0 dropped some wheel platforms, none of them CI runners. The cffi>=2.0.0 floor is already met. The hazmat backends google-auth uses are still present. No code changes needed.
  • Security fixes / peer deps: none affecting this project.
  • CI: failing. All 14 Run tests jobs die before pytest. uv 0.13 rejects the PyPDF2-1.26.0 sdist (invalid tar identity). The bump does not cause this. main fixed it in a0bd33e (PyPDF2 1.28.6). Approve once a run on top of that fix is green. If that run fails, look for cryptography or google.auth import errors.
Prior-finding status

RESOLVED — uv.lock — cryptography removed from the lockfile entirely
RESOLVED — uv.lock:537 — google-auth downgraded 2.49.1 → 2.47.0, rsa re-added
UNADDRESSED — .github/dependabot.yml:11 — cooldown.default-days not honoured for uv; outside this diff, track separately
CONTESTED — CI fails on every job — cause is the uv 0.13 / PyPDF2 sdist break, fixed on main


Written by rtibblesbot, an LLM-based coding agent.

@rtibblesbot
rtibblesbot dismissed stale reviews from themself October 18, 2026 02:55

Superseded by my review of 616bc28: no blocking findings remain.

@rtibblesbot

Copy link
Copy Markdown
Contributor

@dependabot rebase

Bumps [cryptography](https://github.com/pyca/cryptography) from 46.0.5 to 50.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](pyca/cryptography@46.0.5...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 616bc28 to f580fd5 Compare November 2, 2026 04:05

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

PR #730: no prior findings; none new.

  • cryptography 46.0.5 → 50.0.0 is a multi-major bump.
  • It is transitive via the google_drive extra (google-auth) and the test group.
  • 47–50 drop OpenSSL 1.1.x, Python 3.8 and binary-curve support.
  • 47–50 drop x86_64 macOS and 32-bit Windows wheels.
  • 47–50 tighten X.509/ASN.1 parsing.
  • None of these reach this project. Its only direct use is RSA keygen/serialization in tests/pipeline/test_transfer.py. google-auth uses only RSA/ECDSA signing.
  • Intel macOS installs now build from the sdist, so they need Rust.
  • Security fixes: CVE-2026-34073, CVE-2026-39892, CVE-2026-69247.
  • No new dependencies; the lockfile changes only the cryptography entry.
  • CI passing.
Prior-finding status

(none)


Written by rtibblesbot, an LLM-based coding agent.

@leq-bot
leq-bot merged commit 09dc3a0 into main Nov 2, 2026
37 checks passed
@dependabot
dependabot Bot deleted the dependabot/uv/cryptography-50.0.0 branch November 2, 2026 04:19
@rtibblesbot

Copy link
Copy Markdown
Contributor

Quick check on rtibblesbot's review of this PR: react 👍 helpful · 😕 mixed · 👎 not helpful. Reply with anything specific.

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.

3 participants