VAITP Dataset

← Back to the dataset

CVE-2026-111063

AIOHTTP before 3.14.4 fails to enforce Secure flag on shared cookies, allowing them over HTTP.

  • CVSS 6.3
  • CWE-311
  • Configuration Issues
  • Remote

AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.4, the Secure attribute for a shared cookie is not enforced. An attacker can consequently cause a shared cookie marked Secure to be sent with an unencrypted request. This issue is fixed in version 3.14.4.

CVSS base score
6.3
Published
2026-10-19
OWASP
A02 Cryptographic Failures
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Configuration Issues
Subcategory
Information Disclosure
Accessibility scope
Remote
Impact
Information Disclosure
Affected component
AIOHTTP
Fixed by upgrading
Yes

Solution

Upgrade aiohttp to version 3.14.4 or later.

Vulnerable code sample

import aiohttp.web

async def handler(request):
    resp = aiohttp.web.Response(text="OK")
    # VULNERABLE: Secure flag not enforced on shared cookie
    resp.set_cookie('auth_token', 'abc123', secure=True)
    return resp

Patched code sample

import aiohttp.web

async def handler(request):
    resp = aiohttp.web.Response(text="OK")
    # FIX: Enforce Secure flag by specifying SameSite attribute
    resp.set_cookie('auth_token', 'abc123', secure=True, samesite='Lax')
    return resp

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.

Cite this entry

@misc{vaitp:cve2026111063,
  title        = {{AIOHTTP before 3.14.4 fails to enforce Secure flag on shared cookies, allowing them over HTTP.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-111063},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-111063/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.