Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/wneessen/go-mail
  4. ›
  5. CVE-2025-59937

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

September 29, 2025 (updated November 10, 2025)

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, this could lead to a possible wrong address routing or even to ESMTP parameter smuggling.

References

  • github.com/advisories/GHSA-wpwj-69cm-q9c5
  • github.com/wneessen/go-mail
  • github.com/wneessen/go-mail/commit/42e92cfe027be04aff72921adb0f72f11d517479
  • github.com/wneessen/go-mail/issues/495
  • github.com/wneessen/go-mail/pull/496
  • github.com/wneessen/go-mail/security/advisories/GHSA-wpwj-69cm-q9c5
  • nvd.nist.gov/vuln/detail/CVE-2025-59937

Code Behaviors & Features

Detect and mitigate CVE-2025-59937 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.7.1

Fixed versions

  • 0.7.1

Solution

Upgrade to version 0.7.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

go/github.com/wneessen/go-mail/CVE-2025-59937.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:43 +0000.