CVE-2021-23400
HIGH 8.8CVSS 3.1Header injection in nodemailer
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.
- Published
- 29 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-hwqf-gcqm-7353
- Sources
- NVDJSONOSV GHSA-hwqf-gcqm-7353JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodemailer | nodemailercpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:node.js:*:* |
< 6.6.1 | 6.6.1 |
| OSV | npm | nodemailer | < 6.6.1 | 6.6.1 |
References
- https://github.com/nodemailer/nodemailer/commit/7e02648cc8cd863f5085bad3cd09087bccf84b9f · Patch, Third Party Advisory, WEB
- https://github.com/nodemailer/nodemailer/issues/1289 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314737 · Exploit, Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-NODEMAILER-1296415 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23400 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2021)