CVE-2026-55558
Published:August 20, 2026
Updated:September 24, 2026
aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.2, SMTPProtocol.start_tls in src/aiosmtplib/protocol.py consumes the server's 220 response and starts the TLS handshake without clearing SMTPProtocol._buffer. An active network attacker can place attacker-chosen SMTP response lines after the plaintext 220 response in the same network segment. The method then calls loop.start_tls; those bytes survive the transport upgrade and are parsed as the first response from inside the TLS session, desynchronizing subsequent SMTP command and response pairs. Connections using start_tls=True or opportunistic STARTTLS are affected, while connections using use_tls=True are not. This issue is fixed in version 5.1.2.
Affected Packages
aiosmtplib (CONDA):
Affected version(s) >=1.0.2 <5.1.2Fix Suggestion:
Update to version 5.1.2aiosmtplib (CONDA):
Affected version(s) >=1.0.2 <5.1.2Fix Suggestion:
Update to version 5.1.2https://github.com/cole/aiosmtplib.git (GITHUB):
Affected version(s) >=v1.0.1 <v5.1.2Fix Suggestion:
Update to version v5.1.2aiosmtplib (PYTHON):
Affected version(s) >=0.1 <5.1.2Fix Suggestion:
Update to version 5.1.2Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
EPSS
Base Score:
0.26