CVE-2026-55558
MEDIUM 5.9CVSS 3.1aiosmtplib: STARTTLS response injection
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.
- Published
- 20 Aug 2026
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-74
- Also known as
- GHSA-vxj7-4xrp-5vr4PYSEC-2026-3805
- Sources
- NVDJSONOSV GHSA-vxj7-4xrp-5vr4JSONOSV PYSEC-2026-3805JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | aiosmtplib | < 5.1.2 | 5.1.2 |
References
- https://github.com/cole/aiosmtplib/commit/9fab7ba1361dbf7622ede1315a24be805cff09c9 · WEB
- https://github.com/cole/aiosmtplib/releases/tag/v5.1.2 · WEB
- https://github.com/cole/aiosmtplib/security/advisories/GHSA-vxj7-4xrp-5vr4 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-55558 · ADVISORY
- https://github.com/cole/aiosmtplib · PACKAGE
- https://pypi.org/project/aiosmtplib · PACKAGE
- https://github.com/advisories/GHSA-vxj7-4xrp-5vr4 · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 20 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Aug 2026)