CVE-2026-111748
AIOHTTP before 3.14.4 lets attackers spoof Request.scheme via absolute-form URLs.
- CVSS 6.3
- CWE-807
- Input Validation and Sanitization
- Remote
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, an attacker can send an absolute-form request that causes Request.scheme to use attacker-controlled request-target scheme data instead of the connection protocol. Applications that use Request.scheme for security decisions can consequently be tricked into treating an unencrypted connection as encrypted or an encrypted connection as unencrypted. This issue is fixed in version 3.14.4.
- CWE
- CWE-807
- CVSS base score
- 6.3
- Published
- 2026-10-19
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- aiohttp
- Fixed by upgrading
- Yes
Solution
Upgrade aiohttp to version 3.14.4 or later.
Vulnerable code sample
from aiohttp import web
async def handler(request: web.Request) -> web.Response:
# VULNERABLE: trust attacker-controlled scheme
scheme = request.scheme
if scheme != "https":
raise web.HTTPForbidden(reason="Insecure connection")
# proceed with secure processing
return web.Response(text="Secure content")Patched code sample
from aiohttp import web
async def handler(request: web.Request) -> web.Response:
# FIX: derive scheme from actual TLS state
scheme = "https" if request.transport.get_extra_info("sslcontext") else "http"
if scheme != "https":
raise web.HTTPForbidden(reason="Insecure connection")
# proceed with secure processing
return web.Response(text="Secure content")Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Use protocol scheme for absolute-form requests (#13821) (#13827) (#13828) (aio-libs/aiohttp)
aiohttp/http_parser.py · HttpRequestParser.parse_message,aiohttp/web_request.py · BaseRequest.__init__
Cite this entry
@misc{vaitp:cve2026111748,
title = {{AIOHTTP before 3.14.4 lets attackers spoof Request.scheme via absolute-form URLs.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-111748},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-111748/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
