Packages

nodemailer

10.6.0 · 15 Nov 2026MIT-040.3M / weekRepositoryHomepagenpmAtom feed

Upgrading nodemailer From 6.10.1 to 10.3.1

63 releases in betweenevery note read

Other targets from 6.10.1Clears its 22 advisories10.1.4Latest10.6.0
  1. 6.10.1yours
  2. 7.0.0major
  3. 5 releases
  4. 7.0.6security
  5. 6 releases
  6. 8.0.0major
  7. 3 releases
  8. 8.0.4security
  9. 8.0.5security
  10. 3 releases
  11. 8.0.9security
  12. 2 releases
  13. 9.0.0major
  14. 8 releases
  15. 10.0.0major
  16. 27 releases
  17. 10.3.1target

Before you upgrade

Tick each one off as you go
  • Breaking10.2.1
  • Breaking10.0.0
  • Breaking9.0.0
  • Breaking8.0.0
  • Breaking7.0.0

Security

Fixes 22 advisories affecting 6.10.1

  • Two pending security advisories (jsonTransport access bypass, List-* CRLF injection)

    8.0.9
  • Sanitize CRLF in transport name option to prevent SMTP command injection (GHSA-vvjj-xcjg-gr5g)

    8.0.5
  • Sanitize envelope size to prevent SMTP command injection

    8.0.4
  • ReDoS vulnerability in parseDataURI and _processDataUrl

    7.0.6

Release by release

  1. 10.3.1

    29 Oct 20261 fix
    • Fixed

      Apply the otp option in MailComposer too

  2. 10.3.0

    29 Oct 20266 new · 1 fix
    • New

      New otp message option: otp: { code: '123456', origin: 'https://example.com' } adds OTP-Token: "123456"; origin="https://example.com". The origin is reduced to its canonical form, only https (or http on a loopback host) is accepted, and invalid values fail the send with the new EOTP error code. See Message configuration.

    • New

      A custom OTP-Token header is no longer MIME word encoded. Line breaks and control characters are still removed.

    • New

      OTP-Token is included in the DKIM signature by default.

    • New

      A Content-ID header, from an attachment cid or set through headers, is now encoded as a message id rather than as text, so a cid with a non-ASCII character or a quote keeps matching the cid: URL in the HTML.

    • New

      Groundmail added to the well-known services.

    • New

      Add the otp option for the OTP-Token header

    • Fixed

      Encode a Content-ID header as a message id

  3. 10.2.1

    Migration needed22 Oct 2026
    • Breaking

      Drop the comments of a Content-Type or Content-Disposition value with the stripComments option

  4. 10.2.0

    21 Oct 20264 new · 2 fixes
    • New

      Add info.serverMessageId from the final 250 reply

    • New

      Add pendingCount() to the SMTP pool

    • New

      Make header value encoding public with MimeNode encodeHeaderValue()

    • New

      Mark SMTP errors as permanent or transient with err.permanent

    • Fixed

      Label an ASCII message/rfc822 attachment 7bit instead of 8bit

    • Fixed

      Report the recipients an LMTP server refuses after DATA in rejectedErrors

  5. 10.1.7

    18 Oct 20261 fix
    • Fixed

      mime-funcs: encode parameter values that look like encoded words

  6. 10.1.6

    18 Oct 20261 fix
    • Fixed

      addressparser: read groups in the same pass as the rest of the list

  7. 10.1.5

    18 Oct 20262 fixes
    • Fixed

      addressparser: handle an address list without copying it per address

    • Fixed

      addressparser: tokenize into offsets instead of an object per token

  8. 10.1.4

    18 Oct 20269 fixes
    • Fixed

      addressparser: apply the unexpected "<" rule outside quotes and comments

    • Fixed

      addressparser: bound group nesting at ten levels

    • Fixed

      addressparser: drop the obsolete route from an angle-addr

    • Fixed

      addressparser: end a comment only at the ")" that closes the outermost one

3 other lines we could not sort, mostly version bumps
  • Anyone sending one-time passcodes by email who wants them to be machine-readable.

    10.3.0
  • Anyone already setting an OTP-Token header through headers: before this release it went out MIME encoded and could not be parsed.

    10.3.0
  • Anyone embedding images with a cid that holds a non-ASCII character or a quote.

    10.3.0

1 internal line (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.