Intel

AIKIDO-2026-306294

nodemailer is vulnerable to Improper Input Validation

GHSA-g73g-hqqh-jr95Published Oct 5, 2026
October 5, 2026

53

CVE Score

Medium

Improper Input Validation

Are you affected? Scan for Free

TL;DR

Nodemailer's address parser strips RFC 5322 comments from a quoted local part or a bare addr-spec, but not when the address appears inside angle brackets after a display name, the most common way to write a recipient. A comment placed between the local part and domain of an angle bracket address passes through unstripped and reaches envelope.to and the To header. A conformant SMTP server rejects the resulting malformed RCPT TO command, and other mail systems may handle the parenthesized text differently. The fix applies the same comment handling to the angle bracket address path.

How do I fix this?

Upgrade the nodemailer library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you accept recipient or sender addresses containing RFC 5322 comments from an untrusted or externally supplied source.

Package

Versions

3.0.0 - 10.0.12

Fixed in 10.0.13

Background info

nodemailer is vulnerable to Improper Input Validation in versions 3.0.0 - 10.0.12.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea