Skip to content

fix(security): bump cryptography to 50.0.0 — clears 3 CVEs failing the Security Scan - #16

Open
BasitS-hash wants to merge 1 commit into
mainfrom
fix/cryptography-cve-bump
Open

fix(security): bump cryptography to 50.0.0 — clears 3 CVEs failing the Security Scan#16
BasitS-hash wants to merge 1 commit into
mainfrom
fix/cryptography-cve-bump

Conversation

@BasitS-hash

Copy link
Copy Markdown
Owner

Why

The Security Scan workflow has been red on main. pip-audit is flagging three advisories in cryptography:

cryptography 48.0.1  PYSEC-2026-3552  fix 50.0.0
cryptography 48.0.1  PYSEC-2026-3553  fix 49.0.0
cryptography 48.0.1  PYSEC-2026-3554  fix 49.0.0

This is the library performing the AEAD encryption behind the zero-knowledge store — the most security-critical dependency in the project.

The fix

cryptography==48.0.1cryptography==50.0.0.

50.0.0 is the lowest version that clears all three: 3553 and 3554 are fixed in 49.0.0, but 3552 needs 50.0.0. One bump resolves the set rather than leaving a partial fix.

Verification

pip-audit -r requirements.txt --strict   # No known vulnerabilities found
python -m pytest -q                      # 59 passed, 12 skipped

Crypto and JWT security suites (test_crypto.py, test_crypto_security.py, test_jwt_security.py) all pass against the new version, so no API surface changed.

pip-audit in the Security Scan workflow has been failing on main since the
advisories landed:

  cryptography 48.0.1  PYSEC-2026-3552  fix 50.0.0
  cryptography 48.0.1  PYSEC-2026-3553  fix 49.0.0
  cryptography 48.0.1  PYSEC-2026-3554  fix 49.0.0

This library performs the AEAD encryption backing the zero-knowledge store, so
these are in the most sensitive dependency in the project. 50.0.0 is the lowest
version clearing all three (3553 and 3554 are fixed in 49.0.0, but 3552 requires
50.0.0), so a single bump resolves the set.

Verified: pip-audit -r requirements.txt --strict reports no known
vulnerabilities; full suite passes (59 passed, 12 skipped).
Copilot AI lite review requested due to automatic review settings August 11, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants