Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting aiosmtplib package, versions [,5.1.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-AIOSMTPLIB-19233346
  • published23 Aug 2026
  • disclosed21 Aug 2026
  • creditUnknown

Introduced: 21 Aug 2026

NewCVE-2026-55558  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade aiosmtplib to version 5.1.2 or higher.

Overview

aiosmtplib is an aiosmtplib is an asynchronous SMTP client for use with asyncio.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the start_tls function. An attacker can inject arbitrary SMTP response lines by sending specially crafted data after the server's 220 response in the same network segment, causing desynchronization of SMTP command and response pairs after the TLS handshake.

CVSS Base Scores

version 4.0
version 3.1