CVE-2026-54275: aiohttp TLS Server Hostname Override Is Vulnerability
LOWCVE-2026-54275 is a LOW tls server hostname override is vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) affecting aiohttp libraries in the PyPI ecosystem. The issue involves tls server hostname override is ignored when reusing https connections. Remediation is available by upgrading affected packages to version 3.14.1.
CVE-2026-54275 at a Glance
How to Fix CVE-2026-54275
To remediate this vulnerability, upgrade all affected aiohttp 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 aiohttp>=3.14.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show aiohttp
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-54275, inspect your installed packages using pip:
pip show aiohttp
Analyze the terminal output to locate any version of aiohttp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.14.1), your application is affected.
Note: The pip show aiohttp command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-297: Improper Validation of Certificate with Host Mismatch, where the product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host. In aiohttp, 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-54275 Affected aiohttp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aiohttp
|
PyPI |
< 3.14.1
|
3.14.1
|
References
Frequently Asked Questions
What is CVE-2026-54275?
Which aiohttp versions are affected?
What version fixes CVE-2026-54275?
Is aiohttp affected?
What CWE is associated with CVE-2026-54275?
How can I check PyPI dependencies for CVE-2026-54275?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4m7w-qmgq-4wj5",
"modified" : "2026-06-15T20:11:13Z",
"published" : "2026-06-15T20:11:13Z",
"aliases" : [ "CVE-2026-54275" ],
"summary" : "aiohttp: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections",
"details" : "### Summary\n\nThe `server_hostname` TLS SNI check can be bypassed when an existing connection is reused.\n\n### Impact\n\nIf an application makes multiple requests to the same domain, but with different per-request `server_hostname` parameters, then the later calls may succeed by reusing the existing connection when they should have been rejected due to the TLS SNI check.\n\n### Workaround\n\nDisable keep_alive if you need to change the `server_hostname` check between requests.\n\n-----\n\nPatch: https://github.com/aio-libs/aiohttp/commit/0ca2b6c28a25726527a8b60f25960262a91ed0e0",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "aiohttp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.14.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.14.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aio-libs/aiohttp/security/advisories/GHSA-4m7w-qmgq-4wj5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aio-libs/aiohttp"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-297" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-15T20:11:13Z",
"nvd_published_at" : null
}
}