Skip to content

Support Nodemailer v10 in peer dependency ranges to allow security upgrades #13511

Open

Description

@carstrb

Environment

System:

OS: macOS 26.5
CPU: (15) arm64 Apple M5 Pro
Memory: 116.11 MB / 24.00 GB
Shell: 5.9 - /bin/zsh

Binaries:

Node: 22.22.2 - /Users/carstrb/.nvm/versions/node/v22.22.2/bin/node
npm: 10.9.7 - /Users/carstrb/.nvm/versions/node/v22.22.2/bin/npm

Browsers:

Chrome: 156.0.8078.76
Safari: 26.5

npmPackages:

@auth/prisma-adapter: ^2.11.1 => 2.11.3 
next: ^16.2.6 => 16.4.3 
next-auth: ^5.0.0-beta.31 => 5.0.0-beta.32 
react: ^19.2.6 => 19.2.6 

Reproduction URL

https://github.com/carstrb/next-auth-nodemailer-10-repro

Describe the issue

The currently accepted major versions of nodemailer are affected by security advisories whose fixes require newer versions:

Advisory First patched version
GHSA-r7g4-qg5f-qqm2 — OAuth2 TLS certificate validation 8.0.8
GHSA-p6gq-j5cr-w38f — raw message bypasses file/URL access restrictions 9.0.1
GHSA-2x7j-588g-ccc2 — address-list parsing denial of service 9.1.0
GHSA-v53p-9fqp-m79j — free-text address parsing denial of service 10.0.6

How to reproduce

Installed versions are:

next-auth@5.0.0-beta.32
@auth/core@0.41.3
@auth/prisma-adapter@2.11.3
nodemailer@7.0.13

When upgrading the direct Nodemailer dependency to v10, npm reports:

peerOptional nodemailer@"^7.0.7 || ^8.0.5"
from next-auth@5.0.0-beta.32

Expected behavior

Allow a Nodemailer 10 release through the relevant peer dependency ranges if compatible.

Activity

  1. added
    bug
    triage
    on Nov 2, 2026
  2. xyonx-bot commented on Nov 8, 2026

    @xyonx-bot

    Opened PR !13513: #13513

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions