Skip to content

[gomod] Bump github.com/wneessen/go-mail from 0.8.1 to 0.8.2 - #98

Merged
Aloento merged 1 commit into
mainfrom
dependabot/go_modules/github.com/wneessen/go-mail-0.8.2
Dec 1, 2026
Merged

Aloento merged 1 commit into
mainfrom
dependabot/go_modules/github.com/wneessen/go-mail-0.8.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/wneessen/go-mail from 0.8.1 to 0.8.2.

Release notes

Sourced from github.com/wneessen/go-mail's releases.

v0.8.2

[!IMPORTANT] This release fixes two vulnerabilities. All users are encouraged to update to this release at their earliest convenience.

Welcome to go-mail v0.8.2! 🎉

This release fixes two vulnerabilities and brings some additional bugfixes and improvements.

Notable features / improvements / fixes

Fixes for two vulnerabilities

Both vulnerabilities were reported independently in the same timeframe by different reporters and have been merged into two dedicated security advisories. Thanks to everbody who helped improving go-mail's security.

CVEs for both vulnerabilities have been requested, but so far GH has not reacted. In case CVEs are issued by GH, these will be added once received.

Version bump minimal required Go version

PR #645 bumps the minimal required Go version to 1.26.10 to mitigate CVE-2026-111943. Given the severity of the CVE, this makes sure no MitM is possible when talking to TLS secured servers.

Connection closing fixes

PRs #633, #634 and #653 fix issues in the SMTP connection opening and closing logic that could lead to potential process leaking in some edge cases. Thanks to @​riabkovK, @​mai7star and @​bensynapse for reporting the issues and also providing the corresponding PRs.

Client connection without EHLO

PR #641 adds a new configuration flag (WithoutEhlo) that allows the client to skip the initial EHLO attempt when dialing, and only include the HELO call, for when we're certain that the server does not support EHLO (and might misbehave when receiving an unknown command). Thanks to @​Neelo16 for providing the PR.

Encode non-ASCII attachment filenames as RFC 2231 extended parameters

PR #605 fixes the encoding of non-ASCII attachment and embed filenames which were written as RFC 2047 encoded-words inside the quoted parameter (which is explicitly forbidden by RFC 2047 section 5). Thanks to @​binggao1230 for submitting the PR.

Fixes to formatted mail address handling

PR #657 fixes the formatted address handling in all *Format() functions. Previously addresses that were supposed to be quoted, were not quoted correctly. e. g. Robert "Bob" Tester as name would have resulted in "Robert Bob Tester". With the fix, the name is quoted correctly into "Robert \"Bob\" Tester". Thanks to @​wleeaf for reporting the issue and providing a suggested fix PR, which has partly been incoorporated into #657.

Fixes to IPv6 dial address handling

PR #661 fixes the Client dial address handling, that would fail on IPv6 literal hosts. Thanks to @​Narek-Khachikyan for submitting the PR.

What's Changed

... (truncated)

Commits
  • c9de003 Update doc.go
  • acb8216 Merge commit from fork
  • 76dcf24 security(msg): Sanitize List-Unsubscribe URIs
  • 24f8292 Merge commit from fork
  • 4cb4854 security(eml): fix slice out of bounds read
  • 175b419 Merge pull request #661 from Narek-Khachikyan/bugfix/660_ipv6-dial-address
  • 8f7a6f9 Merge pull request #657 from wneessen/bugfix/652_fix-address-quoting
  • 8a34282 Add test cases for quoted display names in addresses
  • f52b570 Add lcov.info to ignored coverage data
  • 78dbbf9 Add tests for RequestMDNToMailAddr
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 13, 2026
ecosquad-autoreview[bot]
ecosquad-autoreview Bot previously approved these changes Nov 13, 2026

@ecosquad-autoreview ecosquad-autoreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: Dependabot — bump go-mail 0.8.1 → 0.8.2

Verdict: ✅ Approve

This is a standard dependabot security bump of github.com/wneessen/go-mail from v0.8.1 to v0.8.2, which fixes two security advisories (out-of-bounds read in the EML parser, GHSA-f82v-42xw-72cj, and CRLF header injection via List-Unsubscribe, GHSA-w8w6-94hg-2qpm), plus connection-handling and IPv6 dial fixes. It also raises the go directive to 1.26.10 (required by the upstream module for the CVE-2026-111943 mitigation) and updates indirect golang.org/x/* dependencies accordingly.

What I verified

  • API compatibility — the only go-mail usage in the repo is internal/notification/smtp.go (mail.NewClient + options, NewMsg/From/To/Subject/SetBodyString, DialAndSendWithContext, *mail.SendError). All of these are stable APIs, unchanged in the 0.8.x patch series. The behavioral changes in v0.8.2 (display-name quoting, List-Unsubscribe sanitization, EML parser bounds checks) don't affect this code path, since we only send plain messages and never set List-Unsubscribe or parse inbound mail.
  • go.sum — the updated h1:/go.mod hashes for go-mail v0.8.2 and the bumped golang.org/x/{crypto,net,sys,text,tools} indirect deps are present and consistent with the go.mod changes.
  • CI — build, go-test, go-test-acc, ent-codegen, and lint checks all pass on the head commit, so the module graph and the newer minimum Go version compile and test cleanly.

Findings

  • suggestion — Dockerfile (ARG GO_VERSION=1.26) and .github/workflows/ci.yaml (GO_VERSION: '1.26') pin only the minor version. The new go 1.26.10 directive in go.mod is satisfied because the floating golang:1.26 / actions/setup-go tags resolve to the latest 1.26.x patch release (≥ 1.26.10, confirmed by the passing build). This is a bit fragile: reproducibility depends on the tag continuing to point at a new enough patch. Consider pinning to 1.26.10 explicitly in both places, or leaving a note. Not blocking — CI already proves it works at the current patch level.

Nothing else of note; no security, correctness, or data-loss concerns. Please merge.

@Aloento

Aloento commented Dec 1, 2026

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [github.com/wneessen/go-mail](https://github.com/wneessen/go-mail) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/wneessen/go-mail/releases)
- [Commits](wneessen/go-mail@v0.8.1...v0.8.2)

---
updated-dependencies:
- dependency-name: github.com/wneessen/go-mail
  dependency-version: 0.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/wneessen/go-mail-0.8.2 branch from 7a53097 to c0901dc Compare December 1, 2026 11:22

@ecosquad-autoreview ecosquad-autoreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: dependabot — go-mail 0.8.1 → 0.8.2

Verdict: approve

This is a routine Dependabot security update: wneessen/go-mail 0.8.1 → 0.8.2 (fixes an EML-parser out-of-bounds panic, GHSA-f82v-42xw-72cj, and a List-Unsubscribe CRLF header-injection, GHSA-w8w6-94hg-2qpm) plus the mandatory go 1.26.0 → go 1.26.10 bump that v0.8.2 requires.

Verification

  • go.mod / go.sum are consistent. Only the go-mail lines change in go.sum, which is expected — v0.8.2 is a patch release with no new transitive requirements. The go 1.26.10 directive matches the upstream release notes.
  • No API breakage. The sole usage site, internal/notification/smtp.go, uses mail.NewClient, mail.NewMsg, client.DialAndSendWithContext, mail.SendError/IsTemp/ErrorCode, all of which are unchanged in 0.8.2 (the release only adds a new WithoutEhlo flag and bugfixes).
  • CI is still running (build, go-test, go-test-acc in progress); I could not confirm a green build from the checks, but nothing in the diff is code that would need re-execution.

Findings

Suggestion — pin the Go version explicitly to match go.mod

  • .github/workflows/ci.yaml uses GO_VERSION: '1.26' and Dockerfile uses ARG GO_VERSION=1.26. Both are floating versions: setup-go and the golang:1.26 image tag resolve to the latest 1.26.x patch, so they satisfy the new go 1.26.10 requirement — but only because the latest 1.26 patch is ≥ 1.26.10 today. If a build ever ran with exactly 1.26.0–1.26.9 (e.g., a locally pinned toolchain, or an offline Docker build with a pre-pulled older image), it would fail with go.mod requires go >= 1.26.10 or fall back to a toolchain auto-download that may be blocked in constrained environments. Consider bumping both to 1.26.10 explicitly for determinism:
    • .github/workflows/ci.yaml: GO_VERSION: '1.26.10'
    • Dockerfile: ARG GO_VERSION=1.26.10
  • This is non-blocking; the floating tags will keep working as long as no older 1.26.x patch is pinned anywhere else.

No correctness, security, or build-blocking issues found. Approving.

@Aloento
Aloento merged commit 4a29124 into main Dec 1, 2026
13 checks passed
@Aloento
Aloento deleted the dependabot/go_modules/github.com/wneessen/go-mail-0.8.2 branch December 1, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant