VDB
Sign up
MEDIUM5.3

PYSEC-2026-2268

Quick fix

PYSEC-2026-2268 — pyopenssl: upgrade to the fixed version with the command below.

pip install --upgrade 'pyopenssl>=26.0.0'

Details

pyOpenSSL is a Python wrapper around the OpenSSL library. Starting in version 0.14.0 and prior to version 26.0.0, if a user provided callback to `set_tlsext_servername_callback` raised an unhandled exception, this would result in a connection being accepted. If a user was relying on this callback for any security-sensitive behavior, this could allow bypassing it. Starting in version 26.0.0, unhandled exceptions now result in rejecting the connection.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyopenssl
Introduced in: 0.14Fixed in: 26.0.0
Fixpip install --upgrade 'pyopenssl>=26.0.0'

References