Upgrade cryptography to 50.0.0 - #340
Open
IlonaShishov wants to merge 1 commit into
Open
Conversation
Bump cryptography minimum from 48.0.1 to 50.0.0 to address CVE-2026-69247 (CVSS 8.2 High), a Bleichenbacher oracle in PKCS#7 decryption that allows plaintext key recovery. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
IlonaShishov
requested review from
dmartinol,
luis5tb and
yuvalk
as code owners
August 11, 2026 12:56
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade
cryptographyfrom >=48.0.1 to >=50.0.0 to address one High-severity CVE:pkcs7_decrypt_der,pkcs7_decrypt_pem,pkcs7_decrypt_smime). During Content Encryption Key (CEK) decryption using RSA PKCS#1 v1.5 padding, differences in error classification and symmetric execution timing allow a remote unauthenticated attacker to reconstruct plaintext keys.Impact on this project: Low. This project uses
cryptographyonly forx509certificate parsing,serialization, andFernetsymmetric encryption — none of the affected PKCS#7 decryption APIs are called.Breaking changes in cryptography 50.0.0:
PUBLIC_KEY_TYPES,PRIVATE_KEY_TYPES, etc.) — not used in this projectChanges
pyproject.toml: bumpcryptography>=48.0.1→cryptography>=50.0.0requirements-agent.txt,requirements-handler.txt,requirements-dev.txt: regenerated lock filesTest plan
make lint— cleanmake test— 490 passed🤖 Generated with Claude Code