Skip to content

fix(security): resolve CVE-2026-26007 by migrating OpenSSL.crypto.verify and unblocking cryptography >= 46.0.5#1

Merged
silvestrid merged 2 commits into
masterfrom
bump-openssl-cryptography-versions
Jul 6, 2026
Merged

fix(security): resolve CVE-2026-26007 by migrating OpenSSL.crypto.verify and unblocking cryptography >= 46.0.5#1
silvestrid merged 2 commits into
masterfrom
bump-openssl-cryptography-versions

Conversation

@silvestrid

Copy link
Copy Markdown

Recreation of upstream IdentityPython#1021 by @ascii-dev (cherry-picked from 9377d34 with original authorship), plus a fork-identifying version bump.

Why

Upgrading cryptography to a version that mitigates CVE-2026-26007 is blocked by pysaml2's pyopenssl < 24.3.0 upper bound. That bound exists because OpenSSL.crypto.verify was removed in pyopenssl 24.3.0.

Changes (from upstream PR IdentityPython#1021)

  • Replace the removed OpenSSL.crypto.verify API in src/saml2/cert.py with cryptography.hazmat.primitives.asymmetric implementations (RSA via PKCS1v15, EC via ECDSA).
  • Remove the < 24.3.0 upper bound on pyopenssl; require pyopenssl >= 25.3.0.
  • Require cryptography >= 46.0.5 (CVE-2026-26007 mitigation).
  • Bump minimum Python to 3.9.2 to align with new upstream package constraints.

Fork-specific changes

  • Version set to 7.5.4+deps.upgrade so dependency reports distinguish this build from unpatched PyPI 7.5.4.

Baserow consumes this fork pinned to the merge commit SHA; the merge commit is also tagged v7.5.4+deps-upgrade.

ascii-dev and others added 2 commits July 6, 2026 16:53
Distinguishes the Baserow fork build (v7.5.4 + upstream PR IdentityPython#1021
cherry-pick) from the unpatched PyPI 7.5.4 release in dependency
reports and pip freeze output.
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