← Back to Pull requests

chore(deps-dev): Update cryptography requirement from <51.0,>=50.0.1 to >=50.0.2,<51.0 in /agent-governance-python/agent-os #4319

Closed
unknown closed this pull request without merging on Oct 14, 2026 17:40 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 17:07 UTC
Author

[//]: # (dependabot-start)
⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.

---

[//]: # (dependabot-end)

Updates the requirements on cryptography to permit the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst">cryptography's changelog</a>.</em></p>
<blockquote>
<p>50.0.2 - 2026-09-30</p>
<pre><code>
Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 4.0.3.
Added `abi3.abi3t wheels for free-threaded CPython 3.15 and later.
Updated to PyO3 0.29.2, which fixes building
cryptography on Cygwin and
MSYS2.
<p>.. _v50-0-1:</p>
<p>50.0.1 - 2026-08-25
</code></pre></p>
<ul>
<li>Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 4.0.2.</li>
</ul>
<p>.. _v50-0-0:</p>
<p>50.0.0 - 2026-07-31</p>
<pre><code>
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 &lt;cryptography.x509.verification&gt; 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
&lt;https://c2sp.org/chunked-encryption&gt;_ 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

  • &lt;/tr&gt;&lt;/table&gt;
    </code></pre>
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a href="https://github.com/pyca/cryptography/commit/4dda5c7fe4ae71b8925f2551910a0ef959df9c7a"><code>4dda5c7</code></a> [50.0.x] Bump for 50.0.2 release + changelog (<a href="https://redirect.github.com/pyca/cryptography/issues/15733">#15733</a>)</li>
    <li><a href="https://github.com/pyca/cryptography/commit/70c881cd7ea97d38df09f57c1117470cd1a5a2f7"><code>70c881c</code></a> [50.0.x] Bump pyo3 to 0.29.2 (<a href="https://redirect.github.com/pyca/cryptography/issues/15731">#15731</a>)</li>
    <li><a href="https://github.com/pyca/cryptography/commit/a8c45c449b8d29908a14561afd45fee8bf27d044"><code>a8c45c4</code></a> [50.0.x] Build abi3.abi3t wheels for CPython 3.15+ (<a href="https://redirect.github.com/pyca/cryptography/issues/15496">#15496</a>) (<a href="https://redirect.github.com/pyca/cryptography/issues/15732">#15732</a>)</li>
    <li>See full diff in <a href="https://github.com/pyca/cryptography/compare/50.0.1...50.0.2">compare view</a></li>
    </ul>
    </details>
    <br />

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)

    ---

    <details>
    <summary>Dependabot commands and options</summary>
    <br />

    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)
  • </details>

    Diff: 649 lines (+486 / -163) across 8 files Reviewer: MohammadHaroonAbuomar Review duration: 33m
    All Vouch review confidence checks passed
    Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.75 · 649 lines diff across 8 files
    0.75
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.075
    Real PR Conversation Timeline
    1 comments
    "Review active on #4319"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 75.2% (HIGH) · Higher = larger blast radius
    75.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.7% · Safe to merge
    29.7%