Skip to content

build(no-ticket): upgrade cryptography to 50.0.0 - #346

Open
cloudsmith-iduffy wants to merge 1 commit into
masterfrom
deps/cryptography-50
Open

build(no-ticket): upgrade cryptography to 50.0.0#346
cloudsmith-iduffy wants to merge 1 commit into
masterfrom
deps/cryptography-50

Conversation

@cloudsmith-iduffy

Copy link
Copy Markdown
Contributor

Description

Clears the high-severity CodeQL dependency alert CVE-2026-69247 (cryptography 49.0.0 → 50.0.0), which currently fails the CodeQL check on every open PR.

pkcs7_decrypt_der, pkcs7_decrypt_pem and pkcs7_decrypt_smime reported the outcome of decrypting a RecipientInfo's encryptedKey in several distinguishable ways — one of which disclosed the exact length recovered from the RSA operation, and the same distinction was observable by timing. A service that auto-decrypts attacker-supplied EnvelopedData and answers adaptively gets a Bleichenbacher oracle against the content-encryption key.

The CLI never calls those APIs; cryptography arrives transitively via PyJWT[crypto], keyring and secretstorage. So this is a lockfile bump to clear the alert, not a fix for exposure in this codebase.

Lockfile only — pyproject.toml is unchanged, since cryptography is not a direct dependency.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other (please describe)

Dependency/security bump.

Additional Notes

uv lock --upgrade-package cryptography, then uv sync --all-extras --dev. Test suite on this branch: 628 passed, 40 skipped.

Note this touches uv.lock, as does the companion mcp bump — whichever merges second will need a re-lock.

🤖 Generated with Claude Code

CVE-2026-69247 (high): pkcs7_decrypt_der/_pem/_smime reported the outcome of
decrypting a RecipientInfo's encryptedKey in distinguishable ways, one of which
disclosed the length recovered from the RSA operation — a Bleichenbacher oracle
against the content-encryption key for any service that decrypts attacker-
supplied EnvelopedData and reflects the result.

The CLI does not call the PKCS#7 decryption APIs; cryptography arrives
transitively via PyJWT[crypto], keyring and secretstorage. This is a lockfile
bump to clear the CodeQL dependency alert on every branch, not a fix for
anything the CLI itself is exposed to.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 9, 2026 04:50
@cloudsmith-iduffy
cloudsmith-iduffy requested a review from a team as a code owner August 9, 2026 04:50

Copilot AI 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.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants