# CVE-2025-59937: go-mail has insufficient address encoding when passing mail addresses to the SMTP client

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-29T16:28:58.000Z
- Modified: 2026-10-09T09:10:00.213Z
- Also known as: GHSA-wpwj-69cm-q9c5, GO-2025-3988
- Related: CGA-j39q-mwqm-5mrc
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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

(As written by CVE List.)

## Affected

- wneessen go-mail: < 0.7.1
- github.com/wneessen/go-mail (Go): before 0.7.1
- pebcak go-mail: before 0.7.1

## Every score

- GitHub_M: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/wneessen/go-mail/issues/495> (exploit, issue-tracking, report, web)
- <https://github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5> (advisory, vendor-advisory, web)
- <https://github.com/wneessen/go-mail/pull/496> (fix, issue-tracking, patch, web)
- <https://github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59937> (advisory)
- <https://github.com/wneessen/go-mail> (package)
- <https://pkg.go.dev/vuln/GO-2025-3988> (web)

## Sources

- CVE List: [CVE-2025-59937](https://www.cve.org/CVERecord?id=CVE-2025-59937), CVE Terms of Use, modified 2025-09-30
- GitHub Advisory Database: [GHSA-wpwj-69cm-q9c5](https://github.com/advisories/GHSA-wpwj-69cm-q9c5), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3988](https://pkg.go.dev/vuln/GO-2025-3988), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-59937](https://nvd.nist.gov/vuln/detail/CVE-2025-59937), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2025-59937 · Whole record: https://cve.day/CVE-2025-59937.json · Rebuilt by cve.day 2026-11-25T22:59:05.334Z
