Skip to content

Chore/nodemailer 8 peer deps#13434

Open
Amanek93 wants to merge 2 commits into
nextauthjs:mainfrom
Amanek93:chore/nodemailer-8-peer-deps
Open

Chore/nodemailer 8 peer deps#13434
Amanek93 wants to merge 2 commits into
nextauthjs:mainfrom
Amanek93:chore/nodemailer-8-peer-deps

Conversation

@Amanek93
Copy link
Copy Markdown

@Amanek93 Amanek93 commented May 8, 2026

☕️ Reasoning

This PR sets the optional nodemailer peer dependency (plus aligned manifests / pnpm-lock.yaml, including next-auth devDependency) to ^8.0.5 so installs compatible with Auth.js must use Nodemailer patched for GHSA-vvjj-xcjg-gr5g.

This PR only adjusts declared compatibility with already-published nodemailer; it does not disclose a new, unreleased vulnerability in Auth.js.

Context: That advisory covers SMTP command injection via CRLF in the transport name option (EHLO/HELO/LHLO). In the published OSV semver range the issue is introduced: 0fixed: 8.0.5 — i.e. every release strictly before 8.0.5 is affected (including Nodemailer 7.x and 8.0.0–8.0.4). The fix is in nodemailer v8.0.5.

Why ^8.0.5: A range like ^8.0.0 can still resolve 8.0.4 and other unpatched 8.0.x; ^8.0.5 matches the published fix boundary and avoids misleading „safe 8.x” installs.

Code impact: No runtime changes to the Auth.js Nodemailer integration — only dependency declarations. The provider still uses createTransport from nodemailer; there are no checks in this repo on the NoAuthENOAUTH rename from Nodemailer v8.

🧢 Checklist

  • Documentation
  • Tests (ran locally: pnpm --filter @auth/core build, pnpm --filter next-auth build, pnpm --filter next-auth test)
  • Ready to be merged (maintainers)

🎫 Affected issues

No specific issue linked; addresses npm/pnpm peer compatibility with safe Nodemailer versions and GHSA-vvjj-xcjg-gr5g.

📌 Resources

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth-docs Ready Ready Preview, Comment May 8, 2026 7:06pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
next-auth-docs Ignored Ignored Preview May 8, 2026 7:06pm

Request Review

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@Amanek93 is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant