dependabot-bot's Description of Work
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 aRecipientInfo'sencryptedKey, 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.dhand loading FFDH keys or
parameters with the key loading APIs. Users should migrate to a more
modern key exchange algorithm.
* Addedxof()class methods to
:class:~cryptography.hazmat.primitives.hashes.SHAKE128and
:class:~cryptography.hazmat.primitives.hashes.SHAKE256for 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:/cobblestonerecipe, an implementation of the
Cobblestone-128 and Cobblestone-256 instantiations of theC2SP_ for streaming authenticated
chunked-encryption specification
<https://c2sp.org/chunked-encryption>
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.Nameas a field type in
the :doc:/hazmat/asn1/indexmodule.
* Loading a public key or an EC private key now rejects DER where the
subjectPublicKey(or ECpublicKey)BIT STRINGdeclares a non-zero
number of unused bits, instead of silently ignoring it.
* Parsing a CRL entry'sInvalidityDateextension now rejects a
GeneralizedTimethat 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_requestand
:func:~cryptography.x509.ocsp.load_der_ocsp_responsenow reject a request
or response whoseversionfield is notv1, the only version defined
by RFC 6960, matching the version validation already performed when loading
certificates, CSRs and CRLs.
* :class:~cryptography.hazmat.primitives.hashes.XOFHashis 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
-
dcb7050Prepare for 50.0.0 release (#15372) -
53fccd9Don't leak how PKCS#7 encryptedKey decryption failed (#15369) -
d472f97Addfrom future import annotationsto all src/ Python files (#15371) -
908773dBump downstream dependencies in CI (#15368) -
2cc07ccBump BoringSSL, OpenSSL, AWS-LC in CI (#15367) -
c94ede9chore(deps): bump ruff from 0.16.0 to 0.16.1 (#15366) -
67a8308chore(deps): bump virtualenv from 21.7.0 to 21.7.1 (#15365) -
95018ffRelease the GIL in one-shot AEAD encrypt/decrypt (#15361) -
6954733Release the GIL during DH and DSA parameter generation (#15364) -
6893b94Import _serialization instead of serialization in x509/extensions (#15363) - Additional commits viewable in compare view
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 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 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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/chaoss/grimoirelab/network/alerts).