aiosmtplib is vulnerable to Command Injection
69
Medium Risk
The SMTP protocol layer writes caller-supplied envelope addresses from mail(), rcpt(), vrfy(), expn(), and sendmail() directly onto the control connection without rejecting embedded C0 control characters or DEL. An attacker who can influence those address strings can inject additional SMTP command lines such as RCPT TO or DATA, smuggling a full transaction or desynchronizing the client session. The patch validates all command arguments in execute_command() and raises ValueError before any bytes are sent.
You are affected if you are using a version that falls within the vulnerable range.
aiosmtplib is vulnerable to Command Injection in versions 0.0.1 - 5.1.0.
Upgrade the aiosmtplib library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant