Description
Nodemailer before 8.0.9 fails to sanitize carriage return and line feed characters in list comment fields, allowing attackers to inject arbitrary message headers. An attacker with control over list.*.comment parameters can inject CRLF sequences to create additional headers in generated RFC822 messages, altering mail client behavior and message semantics.
Published: 2026-08-31
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Nodemailer versions prior to 8.0.9 lack proper sanitization of carriage return and line feed characters in list comment fields, enabling attackers who control the list.*.comment parameters to insert arbitrary message headers into RFC822 emails. This capability allows forging of header fields such as From, To, or Bcc, potentially redirecting email flow, sending spoofed messages, or altering message semantics in a way that can mislead mail clients or bypass basic security checks.

Affected Systems

The vulnerability impacts the Nodemailer mail‑sending library, specifically versions before 8.0.9. Any project that uses Nodemailer to construct emails and supplies untrusted user input to comment fields is exposed. All deployments of Nodemailer that have not applied version 8.0.9 or later revisions are affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity. EPSS data is not available, so exploitation probability is unknown, and the vulnerability is not listed in the CISA KEV catalogue. The likely attack vector requires an attacker to influence the content of list.*.comment fields—typically through an application that accepts user-supplied values for these fields. If that application is exposed to unauthenticated users or a malicious actor can inject data, additional headers can be injected into outbound messages. The lack of automatic sanitization means the exploitation does not require privileged access or exploits beyond normal input handling.

Generated by OpenCVE AI on August 31, 2026 at 10:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Nodemailer to version 8.0.9 or later, which includes the proper sanitization for list comment fields.
  • If an upgrade is not immediately possible, implement input validation to strip or encode all carriage return and line feed characters before passing values to Nodemailer functions.
  • Configure the application to treat any content provided in list.*.comment as untrusted and reject or sanitize it prior to message generation.

Generated by OpenCVE AI on August 31, 2026 at 10:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 31 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Description Nodemailer before 8.0.9 fails to sanitize carriage return and line feed characters in list comment fields, allowing attackers to inject arbitrary message headers. An attacker with control over list.*.comment parameters can inject CRLF sequences to create additional headers in generated RFC822 messages, altering mail client behavior and message semantics.
Title Nodemailer CRLF Injection via List-* Header Comments
First Time appeared Nodemailer
Nodemailer nodemailer
Weaknesses CWE-93
CPEs cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:*:*:*
Vendors & Products Nodemailer
Nodemailer nodemailer
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Nodemailer Nodemailer
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-31T08:46:26.291Z

Reserved: 2026-08-30T13:38:29.951Z

Link: CVE-2026-82661

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-31T09:17:03.940

Modified: 2026-08-31T09:17:03.940

Link: CVE-2026-82661

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T10:30:17Z

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')