aiosmtplib is vulnerable to Argument Injection
63
Medium Risk
aiosmtplib builds the MAIL FROM, RCPT TO, VRFY, EXPN and sendmail command lines from caller supplied addresses, and parse_address accepts values containing whitespace or angle brackets outside a quoted local part. An address such as user@example.com> AUTH=<attacker@example.com smuggles additional tokens onto the envelope command line. This lets callers append ESMTP parameters such as AUTH, NOTIFY or ORCPT, forging authenticated identities or redirecting delivery notifications to third parties. The fix validates every address and rejects these characters before any command is sent.
You are affected if you are using a version that falls within the vulnerable range and you pass user controlled or externally influenced email addresses to the sending API.
aiosmtplib is vulnerable to Argument Injection in versions 0.0.1 - 5.1.2.
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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.