{"id":"CVE-2026-41319","published":"2026-04-24T03:07:24Z","modified":"2026-04-25T01:46:35Z","title":"MailKit has STARTTLS Response Injection via unflushed stream buffer that enables SASL mechanism downgrade","vendor":"jstedfast","product":"MailKit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14086,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/jstedfast/MailKit/security/advisories/GHSA-9j88-vvj5-vhgr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.82},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"jstedfast","affectedVersions":[{"vendor":"jstedfast","product":"MailKit","versions":["< 4.16.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-25T01:46:14.462850Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MailKit","vulnerableRanges":["<4.16.0"],"patched":["4.16.0"],"from":["GHSA-9j88-vvj5-vhgr"],"provenance":"source"}],"summary":{"text":"MailKit, a cross-platform mail client library, has a STARTTLS response injection flaw in versions before 4.16.0, where the internal read buffers in its SMTP, IMAP and POP3 stream classes are not flushed when the connection is upgraded to TLS. An attacker positioned as a man-in-the-middle can inject plaintext protocol responses that are then treated as trusted post-TLS responses, enabling downgrade of the SASL authentication mechanism (for example, forcing PLAIN instead of SCRAM-SHA-256), and exploitation requires network-level man-in-the-middle position and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:26Z"},"euvd":{"id":"EUVD-2026-25388","exploited":false,"provenance":"source"}}