Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. MailKit
  4. ›
  5. CVE-2026-41319

CVE-2026-41319: MailKit has STARTTLS Response Injection via unflushed stream buffer that enables SASL mechanism downgrade

April 18, 2026 (updated April 24, 2026)

A STARTTLS Response Injection vulnerability in MailKit 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. This is the same vulnerability class as CVE-2021-23993 (Thunderbird), CVE-2021-33515 (Dovecot), and CVE-2011-0411 (Postfix).

References

  • github.com/advisories/GHSA-9j88-vvj5-vhgr
  • github.com/jstedfast/MailKit/security/advisories/GHSA-9j88-vvj5-vhgr
  • nvd.nist.gov/vuln/detail/CVE-2026-41319

Code Behaviors & Features

Detect and mitigate CVE-2026-41319 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.16.0

Fixed versions

  • 4.16.0

Solution

Upgrade to version 4.16.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

nuget/MailKit/CVE-2026-41319.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:59 +0000.