Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nodemailer
  4. ›
  5. GHSA-vvjj-xcjg-gr5g

GHSA-vvjj-xcjg-gr5g: Nodemailer Vulnerable to SMTP Command Injection via CRLF in Transport name Option (EHLO/HELO)

April 8, 2026

Nodemailer versions up to and including 8.0.4 are vulnerable to SMTP command injection via CRLF sequences in the transport name configuration option. The name value is used directly in the EHLO/HELO SMTP command without any sanitization for carriage return and line feed characters (\r\n). An attacker who can influence this option can inject arbitrary SMTP commands, enabling unauthorized email sending, email spoofing, and phishing attacks.

References

  • github.com/advisories/GHSA-vvjj-xcjg-gr5g
  • github.com/nodemailer/nodemailer
  • github.com/nodemailer/nodemailer/commit/0a43876801a420ca528f492eaa01bfc421cc306e
  • github.com/nodemailer/nodemailer/releases/tag/v8.0.5
  • github.com/nodemailer/nodemailer/security/advisories/GHSA-vvjj-xcjg-gr5g

Code Behaviors & Features

Detect and mitigate GHSA-vvjj-xcjg-gr5g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.0.5

Fixed versions

  • 8.0.5

Solution

Upgrade to version 8.0.5 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

npm/nodemailer/GHSA-vvjj-xcjg-gr5g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:02 +0000.