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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-18T01:13:46.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-9j88-vvj5-vhgr
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jstedfast MailKit: < 4.16.0; before 4.16.0
- MailKit (NuGet): before 4.16.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/jstedfast/MailKit/security/advisories/GHSA-9j88-vvj5-vhgr> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41319> (advisory)
- <https://github.com/jstedfast/MailKit> (package)

## Sources

- CVE List: [CVE-2026-41319](https://www.cve.org/CVERecord?id=CVE-2026-41319), CVE Terms of Use, modified 2026-04-25
- GitHub Advisory Database: [GHSA-9j88-vvj5-vhgr](https://github.com/advisories/GHSA-9j88-vvj5-vhgr), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-41319](https://nvd.nist.gov/vuln/detail/CVE-2026-41319), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41319 · Whole record: https://cve.day/CVE-2026-41319.json · Rebuilt by cve.day 2026-11-25T22:59:19.457Z
