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-111748 Overview
CVE-2026-111748 is a scheme confusion vulnerability in AIOHTTP, an asynchronous HTTP client/server framework for asyncio and Python. Versions prior to 3.14.4 allow an attacker to send an absolute-form request that causes Request.scheme to reflect attacker-controlled request-target data instead of the actual connection protocol. Applications relying on Request.scheme for security decisions can treat unencrypted connections as encrypted, or vice versa. The flaw is categorized as [CWE-807: Reliance on Untrusted Inputs in a Security Decision]. It was patched in AIOHTTP 3.14.4.
Critical Impact
Applications that make authentication, cookie, or redirect decisions based on Request.scheme can be deceived about transport security, enabling downgrade abuse and policy bypass.
Affected Products
- AIOHTTP versions prior to 3.14.4
- Python web applications and APIs built on AIOHTTP server
- Downstream frameworks and services embedding AIOHTTP request handling
Discovery Timeline
- 2026-10-19 - CVE-2026-111748 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-111748
Vulnerability Analysis
AIOHTTP parses incoming HTTP request lines and exposes the scheme via the Request.scheme attribute. HTTP request lines can take absolute form, such as GET https://victim.example/path HTTP/1.1, which embeds a scheme in the request target. In vulnerable versions, AIOHTTP returns the scheme from the request target rather than the scheme of the underlying transport connection.
When an application uses Request.scheme to enforce TLS, build canonical URLs, set Secure cookie attributes, or decide whether to redirect clients, the attacker-supplied value drives that logic. An unencrypted HTTP connection can be presented to the application as https, or an encrypted connection as http, depending on what the client sends in the request line.
Root Cause
The root cause is reliance on untrusted input in a security decision [CWE-807]. The HTTP parser derived the request scheme from the client-controlled request target instead of the actual connection protocol. The upstream fix in commit 6d4e7b01f9b951aa084a75d7356e907d4ee80411 updates aiohttp/_cparser.pxd and surrounding parser logic to prefer the protocol scheme of the connection for absolute-form requests.
Attack Vector
The attack is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP/1.1 request using absolute-form request-target syntax. The target server reflects the embedded scheme through Request.scheme, and any downstream security logic that trusts this value produces an incorrect result.
// Patch excerpt from aiohttp/_cparser.pxd
// Source: https://github.com/aio-libs/aiohttp/commit/6d4e7b01f9b951aa084a75d7356e907d4ee80411
HTTP_RESPONSE
enum llhttp_method:
- HTTP_CONNECT
+ HTTP_CONNECT,
+ HTTP_OPTIONS
void llhttp_settings_init(llhttp_settings_t* settings)
void llhttp_init(llhttp_t* parser, llhttp_type type,
The commit expands parser method handling as part of the broader change that uses the protocol scheme, rather than the request-target scheme, for absolute-form requests. See the GitHub Security Advisory GHSA-f9xw-jh8m-3mwq for the full fix.
Detection Methods for CVE-2026-111748
Indicators of Compromise
- HTTP request lines containing absolute-form targets such as GET https://host/path HTTP/1.1 arriving on plain HTTP listeners.
- Server access logs showing a request scheme that disagrees with the TLS state of the terminating listener or load balancer.
- Unexpected redirect loops, cookie behavior, or HSTS decisions originating from AIOHTTP services below version 3.14.4.
Detection Strategies
- Inventory Python services and dependencies to identify AIOHTTP versions below 3.14.4 using tools such as pip list or SBOM scanners.
- Correlate reverse-proxy TLS termination logs with application-reported Request.scheme values to find mismatches.
- Add parser-level logging that records the raw request target for a sample of requests to surface absolute-form usage.
Monitoring Recommendations
- Alert on HTTP request targets that begin with http:// or https:// reaching internal AIOHTTP endpoints.
- Monitor for anomalous authentication or cookie-issuance patterns tied to specific client IPs sending absolute-form requests.
- Track dependency drift to ensure AIOHTTP stays on patched releases across all services.
How to Mitigate CVE-2026-111748
Immediate Actions Required
- Upgrade AIOHTTP to version 3.14.4 or later in all server-side deployments.
- Audit application code for any security decision based on Request.scheme, including cookie flags, redirects, and CSRF checks.
- Rebuild and redeploy container images and virtual environments that bundle vulnerable AIOHTTP wheels.
Patch Information
The issue is fixed in AIOHTTP 3.14.4. The upstream fix is tracked in commit 6d4e7b01f9b951aa084a75d7356e907d4ee80411 and released in AIOHTTP v3.14.4. Details are documented in GitHub Security Advisory GHSA-f9xw-jh8m-3mwq.
Workarounds
- Derive the request scheme from the terminating proxy using trusted headers such as Forwarded or X-Forwarded-Proto, validated against an allowlist of upstream proxies.
- Reject absolute-form request targets at a front-end reverse proxy or WAF before they reach AIOHTTP handlers.
- Replace calls to Request.scheme in security-sensitive paths with explicit transport checks against the listening socket or TLS context.
# Upgrade AIOHTTP to the patched release
pip install --upgrade "aiohttp>=3.14.4"
# Verify 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

