go-mail has insufficient address encoding when passing mail addresses to the SMTP client
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-88.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| wneessen | go-mail | before 0.7.1 | 0.7.1 | Patch available | CNA |
| — | github.com/wneessen/go-mail (Go) | before 0.7.1 | 0.7.1 | Patch available | GHSA-wpwj-69cm-q9c5 |
- go-mail Vendorwneessen Affected before 0.7.1 Fixed in 0.7.1 Patch available CNA
- github.com/wneessen/go-mail (Go) Vendor— Affected before 0.7.1 Fixed in 0.7.1 Patch available GHSA-wpwj-69cm-q9c5
Remediation
- Fix · CNA go-mail (wneessen) Fixed in 0.7.1
- Fix · GHSA-wpwj-69cm-q9c5 github.com/wneessen/go-mail (Go) Fixed in 0.7.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59937
- 2026-10-03 Alias added: GHSA-wpwj-69cm-q9c5
References
Patch 2
Advisory 2
Sources
- CVE-2025-59937 · CVE Program
- CVE-2025-59937 · NVD
- FIRST EPSS
- GHSA-wpwj-69cm-q9c5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences