Repository navigation
[gomod] Bump github.com/wneessen/go-mail from 0.8.1 to 0.8.2 - #98
Conversation
There was a problem hiding this comment.
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.modhashes for go-mail v0.8.2 and the bumpedgolang.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 newgo 1.26.10directive ingo.modis satisfied because the floatinggolang:1.26/actions/setup-gotags 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 to1.26.10explicitly 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.
|
@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>
7a53097 to
c0901dc
Compare
There was a problem hiding this comment.
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. Thego 1.26.10directive matches the upstream release notes. - No API breakage. The sole usage site,
internal/notification/smtp.go, usesmail.NewClient,mail.NewMsg,client.DialAndSendWithContext,mail.SendError/IsTemp/ErrorCode, all of which are unchanged in 0.8.2 (the release only adds a newWithoutEhloflag and bugfixes). - CI is still running (
build,go-test,go-test-accin 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.yamlusesGO_VERSION: '1.26'andDockerfileusesARG GO_VERSION=1.26. Both are floating versions:setup-goand thegolang:1.26image tag resolve to the latest 1.26.x patch, so they satisfy the newgo 1.26.10requirement — 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 withgo.mod requires go >= 1.26.10or fall back to a toolchain auto-download that may be blocked in constrained environments. Consider bumping both to1.26.10explicitly 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.
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.
... (truncated)
Commits
c9de003Update doc.goacb8216Merge commit from fork76dcf24security(msg): Sanitize List-Unsubscribe URIs24f8292Merge commit from fork4cb4854security(eml): fix slice out of bounds read175b419Merge pull request #661 from Narek-Khachikyan/bugfix/660_ipv6-dial-address8f7a6f9Merge pull request #657 from wneessen/bugfix/652_fix-address-quoting8a34282Add test cases for quoted display names in addressesf52b570Add lcov.info to ignored coverage data78dbbf9Add tests for RequestMDNToMailAddr