Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111749 Overview
CVE-2026-111749 is a cookie scope handling flaw in AIOHTTP, an asynchronous HTTP client/server framework for Python's asyncio. In versions prior to 3.14.4, a subdomain can remove the Host-Only scope on an existing parent-domain cookie. This weakens the cookie isolation model normally enforced by the client's cookie jar. A user who browses or interacts with an untrusted subdomain can have host-only protections stripped from cookies stored for the parent domain. The practical impact is limited unless the application reflects those cookies back to a browser. The issue is categorized as [CWE-565: Reliance on Cookies without Validation and Integrity Checking] and resolved in aiohttp 3.14.4.
Critical Impact
Subdomains can strip Host-Only protection from parent-domain cookies in the AIOHTTP cookie jar, broadening cookie exposure in client applications that forward or reflect cookies.
Affected Products
- AIOHTTP versions prior to 3.14.4
- Python applications using the AIOHTTP client with persistent cookie jars
- Downstream services that reflect AIOHTTP-managed cookies to browsers
Discovery Timeline
- 2026-10-19 - CVE-2026-111749 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-111749
Vulnerability Analysis
AIOHTTP's cookie jar tracks which cookies are Host-Only, meaning they should only be returned to the exact host that set them, not to any subdomain or parent domain. The vulnerability lies in how the jar represents and compares host-only cookie identities. When a response from a subdomain delivers a cookie that collides with a parent-domain cookie, the jar incorrectly removes the Host-Only marker on the stored parent cookie. The result is that a cookie originally scoped to example.com can lose its Host-Only property after a request to sub.example.com. Clients consuming AIOHTTP as a server-side HTTP client, including scrapers, proxies, and middleware, may then transmit or expose that cookie in a wider scope than intended. The weakness aligns with [CWE-565], where cookie integrity assumptions are relied upon without sufficient validation.
Root Cause
The root cause is an incomplete key used to identify host-only cookies in the abstract cookie jar interface. The host_only_cookies property previously returned a frozenset[tuple[str, str]], which did not include enough context to distinguish cookie entries correctly across subdomains. During cookie expiration and update handling, this undersized key caused host-only state to be overwritten by subdomain-set cookies.
Attack Vector
Exploitation requires the AIOHTTP client to interact with an attacker-controlled or compromised subdomain of a target parent domain while a cookie for that parent domain is present in the jar. The malicious subdomain returns a crafted Set-Cookie header that collides with the parent-domain cookie's name. Subsequent requests then treat the parent cookie as no longer Host-Only, widening its scope. Impact increases when the application reflects stored cookies back to a browser session.
# Patch excerpt - aiohttp/abc.py
@property
@abstractmethod
-def host_only_cookies(self) -> frozenset[tuple[str, str]]:
+def host_only_cookies(self) -> frozenset[tuple[str, str, str]]:
"""Return the host-only cookies stored in this jar."""
@abstractmethod
Source: GitHub Commit 6a07c171. The patch expands the host-only cookie identity tuple from two elements to three, preserving host-only state through cookie expiration and update operations.
Detection Methods for CVE-2026-111749
Indicators of Compromise
- Unexpected Set-Cookie responses from subdomains that reuse parent-domain cookie names.
- Outbound AIOHTTP requests sending previously Host-Only cookies to hosts other than the original issuer.
- Application logs showing cookie reflection or forwarding to browsers from unexpected subdomains.
Detection Strategies
- Inventory Python environments and identify installations of aiohttp below version 3.14.4 using dependency scanners.
- Instrument AIOHTTP client code to log cookie jar membership changes and flag transitions from host-only to domain-scoped.
- Review proxy and HTTP egress telemetry for cookie reuse across sibling hostnames sharing a registrable domain.
Monitoring Recommendations
- Monitor Software Composition Analysis (SCA) output for aiohttp < 3.14.4 in CI/CD pipelines.
- Alert on anomalous Set-Cookie headers from subdomains that overwrite established session cookies.
- Correlate HTTP client traffic with cookie scope changes in long-running AIOHTTP services.
How to Mitigate CVE-2026-111749
Immediate Actions Required
- Upgrade AIOHTTP to version 3.14.4 or later in all affected Python environments.
- Audit server-side HTTP clients that interact with untrusted subdomains of trusted parent domains.
- Rotate any session cookies that may have been exposed through subdomain interactions during the vulnerable window.
Patch Information
The fix is published in GitHub Release v3.14.4 and detailed in GitHub Security Advisory GHSA-gx76-c99x-2c96. The code change in commit 6a07c171 widens the host-only cookie key to retain scope context across cookie expiration events.
Workarounds
- Disable persistent cookie jars for AIOHTTP clients that contact mixed-trust hostnames by passing cookie_jar=aiohttp.DummyCookieJar().
- Segregate HTTP client sessions so that requests to untrusted subdomains do not share a cookie jar with requests to the parent domain.
- Avoid reflecting AIOHTTP-managed cookies into end-user browser responses until the upgrade is applied.
# Upgrade AIOHTTP to the patched release
pip install --upgrade 'aiohttp>=3.14.4'
# Verify the installed version
python -c "import aiohttp; print(aiohttp.__version__)"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

