Advisory

GHSA-vp96-hxj8-p424

Also known as: CVE-2026-27448, PYSEC-2026-2268

Summary

pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback

Details

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.

Unhandled exceptions now result in rejecting the connection.

Credit to Leury Castillo for reporting this issue.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-03-16 15:15 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

pyopenssl

PyPI · All systems

Affected

  • introduced 0.14.0, fixed 26.0.0 (ecosystem)

Fixed versions

26.0.0

Fix

  • Fixed version 26.0.0
    pip install --upgrade pyopenssl==26.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences