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…

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

CVE-2026-41319 is a STARTTLS Response Injection vulnerability in the MailKit library versions prior to 4. 16. 0. It allows a Man-in-the-Middle attacker to inject arbitrary protocol responses during the transition from plaintext to TLS, potentially downgrading SASL authentication mechanisms. This occurs because the internal read buffer is not flushed when upgrading the connection to TLS, causing attacker-injected data to be processed as trusted. The issue is patched in version 4. 16. 0.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/24/2026, 04:21:37 UTC

Technical Analysis

MailKit, a cross-platform mail client library, suffers from a STARTTLS Response Injection vulnerability (CWE-74) in versions before 4.16.0. The vulnerability arises because the internal read buffer in SmtpStream, ImapStream, and Pop3Stream is not cleared when the underlying stream switches to SslStream during the STARTTLS upgrade. This allows a Man-in-the-Middle attacker to inject malicious protocol responses before TLS is established, which are then incorrectly treated as trusted responses after the upgrade. This can lead to SASL authentication mechanism downgrade attacks, such as forcing the use of less secure authentication methods like PLAIN instead of SCRAM-SHA-256. The vulnerability has a CVSS 3.1 base score of 6.5 (medium severity). Version 4.16.0 of MailKit addresses this issue.

Potential Impact

An attacker positioned to intercept and modify traffic before the TLS upgrade can inject malicious protocol responses that are processed as trusted after the upgrade. This enables downgrade of SASL authentication mechanisms, potentially weakening authentication security and increasing the risk of credential exposure. There is no direct confidentiality impact reported, but integrity of the authentication negotiation is compromised.

Mitigation Recommendations

Upgrade MailKit to version 4.16.0 or later, where this vulnerability is patched. Since the vendor advisory indicates the issue is fixed in 4.16.0, applying this official fix fully mitigates the vulnerability. No other mitigations are specifically indicated.

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: 4/24/2026, 4:21:37 AM

Last updated: 4/24/2026, 5:47:43 AM

Views: 5

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