CERT24Nodemailer address parser mishandles RFC 5322 comments inside angle-bracket addressesLoading data…

Nodemailer address parser mishandles RFC 5322 comments inside angle-bracket addresses

The source describes a Nodemailer address-parser issue in which an RFC 5322 comment inside an address of the form “Name <local@domain>” is not recognized or removed. The parentheses remain in the parsed address, reach envelope.to, and are written into the SMTP RCPT TO command. The tested SMTP server rejected the command with a 501 error, causing message delivery to fail.

← Back to intelligence

Nodemailer address parser mishandles RFC 5322 comments inside angle-bracket addresses

The source describes a Nodemailer address-parser issue in which an RFC 5322 comment inside an address of the form “Name <local@domain>” is not recognized or removed. The parentheses remain in the parsed address, reach envelope.to, and are written into the SMTP RCPT TO command. The tested SMTP server rejected the command with a 501 error, causing message delivery to fail.