GitHub Advisoryadvisory · PyPI
GHSA-4m7w-qmgq-4wj5 aiohttp: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections
LOW
Official page ↗
- Aliases
- CVE-2026-54275
- Ecosystem
- PyPI
- Packages
- aiohttp
- Severity
- Low
- CVSS vector
- 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
- Weaknesses
- CWE-297
- Reviewed
- 2026-06-15
Affected packages
• PyPI aiohttp: < 3.14.1 → fixed in 3.14.1
Description
Summary
The `server_hostname` TLS SNI check can be bypassed when an existing connection is reused.
Impact
If 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.
Workaround
Disable keep_alive if you need to change the `server_hostname` check between requests.
-----
Patch: https://github.com/aio-libs/aiohttp/commit/0ca2b6c28a25726527a8b60f25960262a91ed0e0
Related
Alias · CVE (1)
- CVE-2026-54275 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. vulnerability
Weakness · CWE (1)
- CWE-297 Improper Validation of Certificate with Host Mismatch weakness