CVE-2021-23400Nodemailer
High 8.8 No auth needed
Follow: this CVE · Nodemailer · Nodemailer We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Jun 29, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-74
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
The package nodemailer before 6.6.1 are vulnerable to HTTP Header Injection if unsanitized user input that may contain newlines and carriage returns is passed into an address object.
What to do
- Apply the vendor's security update for Nodemailer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | nodemailer |
< 6.6.1 |
6.6.1 |
npm install nodemailer@6.6.1 |
Per OSV / GitHub Advisories (GHSA-hwqf-gcqm-7353). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nodemailer | nodemailer | < 6.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory