CVE-2026-27448: Pyopenssl PyOpenSSL Allows TLS Connection Bypass Vulnerability
LOWCVE-2026-27448 is a LOW pyopenssl allows tls connection bypass vulnerability (CWE-636: Not Failing Securely ('Failing Open')) affecting Pyopenssl libraries in the PyPI ecosystem. The issue involves pyopenssl allows tls connection bypass via unhandled callback exception in set_tlsext_servername_callback. Remediation is available by upgrading affected packages to version 26.0.0.
CVE-2026-27448 at a Glance
How to Fix CVE-2026-27448
To remediate this vulnerability, upgrade all affected Pyopenssl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyopenssl>=26.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyopenssl
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-27448, inspect your installed packages using pip:
pip show pyopenssl
Analyze the terminal output to locate any version of Pyopenssl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.0.0), your application is affected.
Note: The pip show pyopenssl command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-636: Not Failing Securely ('Failing Open'), where when the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or using the most permissive access control restrictions. In Pyopenssl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-27448 Affected Pyopenssl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyopenssl
|
PyPI |
≥ 0.14.0
< 26.0.0
|
26.0.0
|
References
Frequently Asked Questions
What is CVE-2026-27448?
Which Pyopenssl versions are affected?
What version fixes CVE-2026-27448?
Is pyopenssl affected?
What CWE is associated with CVE-2026-27448?
How can I check PyPI dependencies for CVE-2026-27448?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vp96-hxj8-p424",
"modified" : "2026-03-19T18:28:02Z",
"published" : "2026-03-16T15:15:43Z",
"aliases" : [ "CVE-2026-27448" ],
"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.\n\nUnhandled exceptions now result in rejecting the connection.\n\nCredit to **Leury Castillo** for reporting this issue.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyopenssl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.14.0"
}, {
"fixed" : "26.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pyca/pyopenssl/security/advisories/GHSA-vp96-hxj8-p424"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27448"
}, {
"type" : "WEB",
"url" : "https://github.com/pyca/pyopenssl/commit/d41a814759a9fb49584ca8ab3f7295de49a85aa0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pyca/pyopenssl"
}, {
"type" : "WEB",
"url" : "https://github.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst#L27"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-636" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-16T15:15:43Z",
"nvd_published_at" : "2026-03-18T00:16:19Z"
}
}