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

CVE-2026-30227: MimeKit has CRLF Injection in Quoted Local-Part that Enables SMTP Command Injection and Email Forgery

March 5, 2026 (updated March 6, 2026)

A CRLF Injection vulnerability in MimeKit 4.15.0 allows an attacker to embed \r\n into the SMTP envelope address local-part (when the local-part is a quoted-string). This is non-compliant with RFC 5321 and can result in SMTP command injection (e.g., injecting additional RCPT TO / DATA / RSET commands) and/or mail header injection, depending on how the application uses MailKit/MimeKit to construct and send messages. The issue becomes exploitable when the attacker can influence a MailboxAddress (MAIL FROM / RCPT TO) value that is later serialized to an SMTP session.

RFC 5321 explicitly defines the SMTP mailbox local-part grammar and does not permit CR (13) or LF (10) inside Quoted-string (qtextSMTP and quoted-pairSMTP ranges exclude control characters). SMTP commands are terminated by <CRLF>, making CRLF injection in command arguments particularly dangerous.

References

  • github.com/advisories/GHSA-g7hc-96xr-gvvx
  • github.com/jstedfast/MimeKit
  • github.com/jstedfast/MimeKit/security/advisories/GHSA-g7hc-96xr-gvvx
  • nvd.nist.gov/vuln/detail/CVE-2026-30227

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.15.1

Fixed versions

  • 4.15.1

Solution

Upgrade to version 4.15.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

nuget/MimeKit/CVE-2026-30227.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 25 Mar 2026 12:17:40 +0000.