Medium severity · published Aug 20, 2026
CVE-2026-55558
aiosmtplib: STARTTLS response injection
5.9
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AI
aiosmtplib · cole
< 5.1.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-55558
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-55558
github.com
https://github.com/cole/aiosmtplib/commit/9fab7ba1361dbf7622ede1315a24be805cff09c9
github.com
https://github.com/cole/aiosmtplib/releases/tag/v5.1.2
github.com
https://github.com/cole/aiosmtplib/security/advisories/GHSA-vxj7-4xrp-5vr4
More from aiosmtplib
6.9
CVE-2026-53533
aiosmtplib: SMTP command injection via CR/LF in sender/recipient address
4.0
CVE-2026-90467
aiosmtplib before 5.1.3 ESMTP Parameter Injection via unvalidated addresses
