CVE-2026-50269
Undergoing Analysis Undergoing Analysis - In Progress
HTTP Header Injection in AIOHTTP Framework

Publication date: 2026-06-22

Last updated on: 2026-06-22

Assigner: GitHub, Inc.

Description
AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. Prior to 3.14.0, attacker-controlled input included into multipart/payload headers can be used to modify a request to inject additional headers or similar. In the unlikely situation that an application is passing user-controlled strings into MultipartWriter.append(headers=...) or Payload.headers, then an attacker may be able to modify the request to inject headers or change the contents of the request. This vulnerability is fixed in 3.14.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-22
Last Modified
2026-06-22
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 4 associated CPEs
Vendor Product Version / Range
aiohttp aiohttp to 3.14.0 (exc)
aio-libs aiohttp to 3.14.0 (exc)
aio-libs aiohttp 3.14.0
aio-libs aiohttp 3.13.5
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-113 The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.
CWE-93 The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

This vulnerability allows attacker-controlled input to be injected into multipart/payload headers, potentially modifying requests by injecting additional headers or altering request contents.

If an application passes user-controlled strings into multipart headers without proper sanitization, it could lead to unauthorized manipulation of HTTP requests.

Such unauthorized request modifications could impact the confidentiality and integrity of data transmitted by the application, which are key concerns in compliance with standards like GDPR and HIPAA.

Therefore, failure to mitigate this vulnerability might increase the risk of non-compliance with these regulations due to potential data manipulation or leakage.

Mitigation involves upgrading to aiohttp version 3.14.0 or later and sanitizing user input to prevent header injection.

Executive Summary

CVE-2026-50269 is a low-severity vulnerability in the aiohttp library (versions prior to 3.14.0) that allows an attacker to inject additional HTTP headers or modify request contents by exploiting improper handling of attacker-controlled input in multipart or payload headers.

Specifically, if an application passes user-controlled strings into MultipartWriter.append(headers=...) or Payload.headers, an attacker can insert carriage return and line feed characters (CRLF) to manipulate the request headers.

This vulnerability is categorized under CWE-93 and CWE-113, which relate to improper neutralization of CRLF sequences in HTTP headers.

Impact Analysis

If your application uses aiohttp versions prior to 3.14.0 and passes user-controlled input into multipart or payload headers, an attacker could exploit this vulnerability to inject additional headers or alter the contents of HTTP requests.

This could lead to unexpected behavior such as header injection attacks, which might be used to bypass security controls, manipulate request routing, or cause other unintended effects depending on how the headers are processed downstream.

Detection Guidance

This vulnerability involves attacker-controlled input being included in multipart/payload headers to inject additional headers or modify requests. Detection involves identifying if your application passes user-controlled strings into MultipartWriter.append(headers=...) or Payload.headers.

To detect potential exploitation, you can monitor HTTP requests for unusual or unexpected headers, especially those containing carriage return (\r), line feed (\n), or null byte (\x00) characters which are indicators of header injection attempts.

While no specific commands are provided in the resources, general network monitoring tools like tcpdump or Wireshark can be used to capture HTTP traffic and inspect multipart headers for suspicious characters or injected headers.

  • Use tcpdump to capture HTTP traffic: tcpdump -i <interface> -A 'tcp port 80 or 443'
  • Use Wireshark to filter and analyze HTTP multipart requests for unusual header content.
  • Review application logs for any unexpected header values or errors related to multipart header processing.
Mitigation Strategies

The primary mitigation is to upgrade the aiohttp library to version 3.14.0 or later, where this vulnerability is fixed.

If upgrading immediately is not possible, sanitize all user-controlled input that is passed into MultipartWriter.append(headers=...) or Payload.headers to ensure it does not contain carriage return, line feed, or null byte characters.

Implement input validation to reject or escape potentially dangerous characters that could be used for header injection.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50269. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart