{"id":"CVE-2025-59937","title":"go-mail is a comprehensive library for sending mails with Go","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 comma…","severity":"critical","cvss":9.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-88","CWE-88"],"vendor":"pebcak","product":"go-mail","affected":["go-mail < 0.7.1"],"patched":["go-mail 0.7.1"],"published":"2025-09-29","updated":"2026-10-09","sourceUpdated":"2026-10-09T09:10:00.213","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-59937","references":[{"url":"https://github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479","label":"security-advisories@github.com"},{"url":"https://github.com/wneessen/go-mail/issues/495","label":"security-advisories@github.com"},{"url":"https://github.com/wneessen/go-mail/pull/496","label":"security-advisories@github.com"},{"url":"https://github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5","label":"security-advisories@github.com"},{"url":"https://github.com/wneessen/go-mail/issues/495","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd"],"epss":0.00542,"epssPercentile":0.4377,"ingestedAt":"2026-10-09T09:31:00.992Z","slug":"CVE-2025-59937","body":"## Overview\n\ngo-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\n\n## Affected\n\n- `go-mail < 0.7.1`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `go-mail 0.7.1`","depth":"midnight","depthScore":50,"depthScoreParts":{"impact":50.1,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}