Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. smtp-server
  4. ›
  5. CVE-2026-38728

CVE-2026-38728: smtp-server's command parser memory exhaustion denial-of-service

May 15, 2026 (updated June 29, 2026)

smtp-server prior to v3.18.3 are vulnerable to unauthenticated memory exhaustion denial-of-service. smtp-server’s command parser allows any remote client to consume server memory by sending data without newline characters. The server’s _remainder buffer in SMTPStream._write grows without limit, leading to heap exhaustion, prolonged GC pauses that freeze the event loop, and in some cases, process crash.

The _write method in lib/smtp-stream.js appends incoming TCP chunks to this._remainder in command mode. The buffer is only emptied when a newline is found. If a client never sends a newline, the _remainder value will grow indefinitely, causing excess memory consumption.

References

  • bytecreator.dev/blog/CVE-2026-38728
  • github.com/advisories/GHSA-fv2f-rw9f-v9cm
  • github.com/nodemailer/smtp-server
  • github.com/nodemailer/smtp-server/commit/592c5666fa0c76d1d04c1a32abad0ef806fbfe97
  • github.com/nodemailer/smtp-server/releases/tag/v3.18.3
  • nvd.nist.gov/vuln/detail/CVE-2026-38728

Code Behaviors & Features

Detect and mitigate CVE-2026-38728 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 3.18.3

Fixed versions

  • 3.18.3

Solution

Upgrade to version 3.18.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/smtp-server/CVE-2026-38728.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 16 Jul 2026 12:18:00 +0000.