Patch cryptography and pyOpenSSL vulnerabilities CVE-2026-26007 and CVE-2026-27459#1032
Closed
evansun06 wants to merge 1 commit into
Closed
Patch cryptography and pyOpenSSL vulnerabilities CVE-2026-26007 and CVE-2026-27459#1032evansun06 wants to merge 1 commit into
evansun06 wants to merge 1 commit into
Conversation
…yopenssl vulnerability)
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.
Description
The feature or problem addressed by this PR
Addresses security findings in pysaml2’s cryptography stack, including the pyOpenSSL vulnerability tracked in #1023.
Specifically:
pyOpenSSL >=22.0.0,<26.0.0cryptographyreleaseWhat your changes do and why you chose this solution
This PR updates pysaml2’s dependency bounds and certificate verification implementation to support secure pyCA package versions.
Changes include:
Bumps
pyOpenSSLto>=26.2.0,<26.3.0Bumps
cryptographyto>=48.0.1,<49.0.0Replaces removed
OpenSSL.crypto.verifyusage withcryptography.x509certificate verificationAdds explicit security floors for vulnerable transitive/test dependencies found during audit
Raises Python support to
>=3.10to allow secure dependency resolutionUpdates the tox matrix to supported Python versions
Adds certificate verification regression tests
The
pyOpenSSL <26.3.0cap is intentional:26.3.0removes CSR APIs that pysaml2 still uses. This bounded upgrade fixes the security issue without requiring a larger CSR-generation rewrite.Verification completed:
poetry checkpytest tests/test_81_certificates.py tests/test_92_aes.pypython -m pip checkpip-auditpip-auditreports:No known vulnerabilities found.Checklist