CVE-2025-59937: wneessen go-mail · Argument Injection
Affects wneessen go-mailSource CVE Database V5
Not known to be exploited · CVSS 8.2 High : upgrade to 0.7.1 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.7.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade wneessen go-mail to 0.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| wneessen go-mail | Affected
| Fixed in
|
AI-suggested
1. Upgrade all instances of the go-mail library to version 0.7.1 or later immediately to apply the official fix. 2. Implement strict validation and sanitization of all user-supplied email addresses before passing them to the mail library, ensuring no quoted local parts or special characters that could be used for injection are accepted. 3. Employ allowlists for email address formats and domains where feasible to reduce risk from arbitrary inputs. 4. Monitor email sending logs for unusual SMTP command patterns or routing anomalies that could indicate exploitation attempts. 5. Use application-layer email validation libraries that conform to RFC standards to reject malformed or suspicious addresses. 6. Conduct code reviews and security testing focused on email input handling in all applications utilizing go-mail. 7. Consider deploying outbound email security gateways that can detect and block anomalous SMTP commands or parameter injections. 8. Educate developers and administrators about the risks of argument injection in SMTP commands and the importance of input sanitization. 9. Maintain an incident response plan to quickly address any suspected exploitation. 10. Regularly audit dependencies and update libraries to minimize exposure to known vulnerabilities.
Description
go-mail is a comprehensive library for sending mails with Go. In versions 0.7.0 and below, due to incorrect handling of the mail.Address values when a sender- or recipient address is passed to the corresponding MAIL FROM or RCPT TO commands of the SMTP client, there is a possibility of wrong address routing or even ESMTP parameter smuggling. For successful exploitation, it is required that the user's code allows for arbitrary mail address input (i.e.through a web form or similar). If only static mail addresses are used (i.e.in a config file) and the mail addresses in use do not consist of quoted local parts, this should not affect users. This issue is fixed in version 0.7.1
References
- github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5 (opens in a new tab)
- github.com/wneessen/go-mail/issues/495 (opens in a new tab)
- github.com/wneessen/go-mail/pull/496 (opens in a new tab)
- github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479 (opens in a new tab)