nodemailer
10.6.0 · 15 Nov 2026MIT-040.3M / weekRepositoryHomepagenpmAtom feed
Upgrading nodemailer From 7.0.13 to 10.3.1
50 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking10.2.1
- Breaking10.0.0
- Breaking9.0.0
- Breaking8.0.0
Security
Fixes 20 advisories affecting 7.0.13
- Nodemailer: CRLF injection in Nodemailer List-* header comments allows arbitrary message header injectionmoderate · GHSA-268h-hp4c-crq3
- Nodemailer: Quadratic (O(n²)) time complexity in addressparser allows remote denial of service via a crafted address listhigh · GHSA-2x7j-588g-ccc2
- Nodemailer: Quadratic (O(n^2)) DKIM header unfolding lets a large folded header cause remote denial of service during signingmoderate · GHSA-39m8-27wv-hr27
- Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection regexes allows pre-auth remote denial of servicemoderate · GHSA-4ffr-jq9g-5ffx
- Nodemailer: Quadratic (O(n^2)) SMTP client reply parsing lets a malicious server or MITM cause a pre-auth remote denial of servicemoderate · GHSA-4g23-2xm8-66gc
- Nodemailer: Process-global DNS cache reuses TLS `servername` across transports, enabling cross-tenant SMTP credential disclosuremoderate · GHSA-6vj9-mwq6-2f5v
- Nodemailer: A ">" inside a quoted local part ends an angle-addr early in addressparser, delivering to a domain the header does not namemoderate · GHSA-85x2-q946-cp5h
- Nodemailer: A nested comment ends early in addressparser, releasing the rest of the comment as a recipientmoderate · GHSA-8c8m-p3m8-cjg8
- Nodemailer: resolveContent() on a MailMessage bypasses disableFileAccess/disableUrlAccess when called with the legacy signaturemoderate · GHSA-8m3c-c648-2xjj
- Nodemailer: Nested structured recipient arrays bypass the parser depth limit and cause stack exhaustion DoSmoderate · GHSA-8vvx-rff5-p5rq
- Nodemailer has SMTP command injection due to unsanitized `envelope.size` parameterlow · GHSA-c7w3-x93f-qmm8
- Nodemailer: Recipient-domain validation bypass via RFC 5322 comment mis-parsing leads to email delivery to an attacker-controlled domainmoderate · GHSA-cc9r-2j5m-2m83
- Nodemailer: RFC 5322 comment inside an angle-bracket address is never strippedmoderate · GHSA-g73g-hqqh-jr95
- Nodemailer: A ";" inside a quoted string or comment ends an address group early in addressparser, turning display text into a recipientmoderate · GHSA-m943-m63m-w62w
- Nodemailer: Message-level raw option bypasses disableFileAccess/disableUrlAccess, enabling arbitrary file read and full-response SSRF in the delivered messagehigh · GHSA-p6gq-j5cr-w38f
- Nodemailer: Improper TLS Certificate Validation in OAuth2 Token Fetch Enables Credential Interceptionhigh · GHSA-r7g4-qg5f-qqm2
- Nodemailer: Quadratic backtracking in the addressparser free-text fallback allows remote denial of servicehigh · GHSA-v53p-9fqp-m79j
- Nodemailer Vulnerable to SMTP Command Injection via CRLF in Transport name Option (EHLO/HELO) moderate · GHSA-vvjj-xcjg-gr5g
- Nodemailer: IDN/Punycode domain allow-list bypass leads to email delivery to an attacker-controlled domainmoderate · GHSA-wmmp-3585-3rmp
- Nodemailer jsonTransport bypasses disableFileAccess and disableUrlAccess during message normalizationmoderate · GHSA-wqvq-jvpq-h66f
- 8.0.9
Two pending security advisories (jsonTransport access bypass, List-* CRLF injection)
- 8.0.5
Sanitize CRLF in transport name option to prevent SMTP command injection (GHSA-vvjj-xcjg-gr5g)
- 8.0.4
Sanitize envelope size to prevent SMTP command injection
Release by release
- Fixed
Apply the otp option in MailComposer too
- Fixed
- New
New
otpmessage option:otp: { code: '123456', origin: 'https://example.com' }addsOTP-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 newEOTPerror code. See Message configuration. - New
A custom
OTP-Tokenheader is no longer MIME word encoded. Line breaks and control characters are still removed. - New
OTP-Tokenis included in the DKIM signature by default. - New
A
Content-IDheader, from an attachmentcidor set throughheaders, is now encoded as a message id rather than as text, so acidwith a non-ASCII character or a quote keeps matching thecid: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
- New
- Breaking
Drop the comments of a Content-Type or Content-Disposition value with the stripComments option
- Breaking
- 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
- New
- Fixed
mime-funcs: encode parameter values that look like encoded words
- Fixed
- Fixed
addressparser: read groups in the same pass as the rest of the list
- Fixed
- Fixed
addressparser: handle an address list without copying it per address
- Fixed
addressparser: tokenize into offsets instead of an object per token
- Fixed
- 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
- Fixed
3 other lines we could not sort, mostly version bumps
- 10.3.0
Anyone sending one-time passcodes by email who wants them to be machine-readable.
- 10.3.0
Anyone already setting an
OTP-Tokenheader throughheaders: before this release it went out MIME encoded and could not be parsed. - 10.3.0
Anyone embedding images with a
cidthat holds a non-ASCII character or a quote.
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.