Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 86%

CVE-2026-41319: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in jstedfast MailKit

0
Medium
VulnerabilityCVE-2026-41319cvecve-2026-41319cwe-74
Published: Fri Apr 24 2026 (04/24/2026, 03:07:24 UTC)
Source: CVE Database V5
Vendor/Project: jstedfast
Product: MailKit

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.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/01/2026, 20:39:08 UTC

Technical Analysis

MailKit, a cross-platform mail client library, suffers from a STARTTLS Response Injection vulnerability (CVE-2026-41319) in versions before 4.16.0. The vulnerability stems from the internal read buffer in SmtpStream, ImapStream, and Pop3Stream not being flushed when the underlying stream is replaced with SslStream during the STARTTLS upgrade. This flaw allows a Man-in-the-Middle attacker to inject arbitrary protocol responses across the trust boundary from plaintext to TLS. As a result, the attacker can downgrade SASL authentication mechanisms, potentially forcing weaker authentication methods. The vulnerability is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). The issue is patched in MailKit version 4.16.0.

Potential Impact

An attacker positioned as a Man-in-the-Middle can inject malicious protocol responses during the STARTTLS upgrade, causing the client to accept attacker-injected data as if it were legitimate TLS-protected responses. This enables downgrading the SASL authentication mechanism to weaker methods like PLAIN, which can compromise authentication security. There is no direct confidentiality impact reported, but integrity of the authentication negotiation is affected. No known exploits are reported in the wild at this time.

Mitigation Recommendations

Upgrade MailKit to version 4.16.0 or later, where this vulnerability is patched. Since the vulnerability is fixed in this version, no additional mitigation steps are required beyond applying the official update. Patch status is not explicitly stated but the vendor has released version 4.16.0 to address the issue, indicating an official fix is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-20T14:01:46.671Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69eaec2d87115cfb68c0d93a

Added to database: 4/24/2026, 4:06:05 AM

Last enriched: 5/1/2026, 8:39:08 PM

Last updated: 6/8/2026, 2:50:42 AM

Views: 65

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses