CVE-2026-53533cole aiosmtplib
Medium 6.9 No auth needed
Follow: this CVE · cole · cole aiosmtplib We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Aug 18, 2026
- Updated
- Oct 22, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.1, SMTP.mail(), SMTP.rcpt(), SMTP.vrfy(), and SMTP.expn() send caller-supplied addresses without rejecting embedded CR or LF bytes. Data after the line break is framed as additional standalone SMTP command lines, allowing an attacker who influences an envelope sender or recipient to inject commands such as MAIL FROM, RCPT TO, RSET, DATA, or AUTH. SMTP.sendmail() and SMTP.send() without a Message object pass addresses through the affected methods, while SMTP.send_message() is not affected. Successful injection can desynchronize the command-response pipeline, hang the SMTP instance, or send an arbitrary message without requiring attacker control of the SMTP server. This issue is fixed in version 5.1.1.
What to do
- Apply the vendor's security update for aiosmtplib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | aiosmtplib |
< 5.1.1 |
5.1.1 |
pip install "aiosmtplib>=5.1.1" |
| PyPI | aiosmtplib |
< 5.1.1 |
5.1.1 |
pip install "aiosmtplib>=5.1.1" |
Per OSV / GitHub Advisories (GHSA-v3q9-hj7j-63hq, PYSEC-2026-2338). Check the version in your lockfile before upgrading.
Affected products
- cole · aiosmtplib
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- python311-aiosmtplib-5.1.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11035-1 · Jun 15, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.