Advisory

GHSA-4m7w-qmgq-4wj5

Also known as: CVE-2026-54275, PYSEC-2026-237

Summary

aiohttp: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections

Details

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2026-06-15 20:11 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

aiohttp

PyPI · All systems

Affected

  • introduced 0, fixed 3.14.1 (ecosystem)

Fixed versions

3.14.1

Fix

  • Fixed version 3.14.1
    pip install --upgrade aiohttp==3.14.1

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