CVE-2026-41319
MEDIUMMailKit has STARTTLS Response Injection via unflushed stream buffer that enables SASL mechanism downgrade
Title source: cnaDescription
MailKit is a cross-platform mail client library built on top of MimeKit. A STARTTLS Response Injection vulnerability in versions prior to 4.16.0 allows a Man-in-the-Middle attacker to inject arbitrary protocol responses across the plaintext-to-TLS trust boundary, enabling SASL authentication mechanism downgrade (e.g., forcing PLAIN instead of SCRAM-SHA-256). The internal read buffer in `SmtpStream`, `ImapStream`, and `Pop3Stream` is not flushed when the underlying stream is replaced with `SslStream` during STARTTLS upgrade, causing pre-TLS attacker-injected data to be processed as trusted post-TLS responses. Version 4.16.0 patches the issue.
References (1)
Core 1
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/jstedfast/MailKit/security/advisories/GHSA-9j88-vvj5-vhgr
Scores
CVSS v3
6.5
EPSS
0.0022
EPSS Percentile
12.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-74
Status
published
Products (3)
jstedfast/mailkit
< 4.16.0
jstedfast/MailKit
< 4.16.0
nuget/MailKit
0 - 4.16.0NuGet
Published
Apr 24, 2026
Tracked Since
Apr 24, 2026