{"answers":{"affected":"2 open source packages ship an affected version, including MimeKit. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-30227 exists.","fix":"Upgrade MimeKit to 4.15.1 or later.","what":"CVE-2026-30227 is a medium-severity command injection vulnerability in jstedfast MimeKit, published on 6 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-30227 and fix it if it is affected.\n\nWhat it is: CVE-2026-30227 is a medium-severity command injection vulnerability in jstedfast MimeKit, published on 6 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-30227 exists.\n\nAffected packages and fixed versions:\n- MimeKit (NuGet): affected all versions; fixed in 4.15.1\n- MimeKit (NuGet): affected all versions; fixed in 4.15.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-30227/ (Markdown: https://insights.sbomify.com/CVE-2026-30227/index.md)","id":"CVE-2026-30227","markdown":"https://insights.sbomify.com/CVE-2026-30227/index.md","name":"CVE-2026-30227","record":{"aliases":["GHSA-g7hc-96xr-gvvx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"C# MIME library","requires_auth":"none","summary":"Attackers can inject SMTP commands via CRLF in quoted email addresses, enabling email forgery or command execution in applications using MimeKit.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mimekit","vendor":"jstedfast"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"description":"MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications. Prior to version 4.15.1, a CRLF injection vulnerability in MimeKit 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 \u003cCRLF\u003e, making CRLF injection in command arguments particularly dangerous. This issue has been patched in version 4.15.1.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MimeKit: CRLF Injection in Quoted Local-Part Enables SMTP Command Injection and Email Forgery","id":"CVE-2026-30227","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Parse Server: File creation and deletion bypasses `readOnlyMasterKey` write restriction","id":"CVE-2026-30228"},"packages":[{"ecosystem":"NuGet","fixed":["4.15.1"],"introduced":["0"],"last_affected":[],"package":"MimeKit","purl":null,"source":"GHSA-g7hc-96xr-gvvx"},{"ecosystem":"NuGet","fixed":["4.15.1"],"introduced":["0"],"last_affected":[],"package":"MimeKit","purl":"pkg:nuget/MimeKit","source":"GHSA-g7hc-96xr-gvvx"}],"prev":{"headline":"devalue has prototype pollution in devalue.parse and devalue.unflatten","id":"CVE-2026-30226"},"products":["MimeKit"],"published":"2026-03-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-09","vendors":["jstedfast"]},"summary":"Attackers can inject SMTP commands via CRLF in quoted email addresses, enabling email forgery or command execution in applications using MimeKit.","url":"https://insights.sbomify.com/CVE-2026-30227/"}