High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23400
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:39 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23400
Complete source record
{
"id": "b4c57b426aec12f0ed9e3d8bbfef5f1017d26b0626132f4e375475a75ef953a7",
"url": "https://osv.dev/vulnerability/CVE-2021-23400",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23400",
"summary": "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.",
"evidence": "osv:CVE-2021-23400",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-23400",
"aliases": [
"CVE-2021-23400",
"GHSA-hwqf-gcqm-7353"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nodemailer/nodemailer",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7e02648cc8cd863f5085bad3cd09087bccf84b9f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nodemailer:nodemailer:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.6.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "7e02648cc8cd863f5085bad3cd09087bccf84b9f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v6.6.0",
"v6.5.0",
"v6.4.18",
"v6.4.17",
"v6.4.16",
"v6.4.15",
"v6.4.14",
"v6.4.13",
"v6.4.12",
"v6.4.11",
"v6.4.10",
"v6.4.8",
"v6.4.7",
"v6.4.6",
"v6.4.5",
"v6.4.4",
"v6.4.3",
"v6.4.2",
"v6.4.1",
"v6.4.0",
"v6.3.1",
"v6.3.0",
"v6.2.1",
"v6.2.0",
"v6.1.1",
"v6.1.0",
"v6.0.0",
"v5.1.1",
"v5.1.0",
"v5.0.1",
"v5.0.0",
"v4.7.0",
"v4.6.8",
"v4.6.7",
"v4.6.6",
"v4.6.5",
"v4.6.4",
"v4.6.3",
"v4.6.2",
"v4.6.1",
"v4.6.0",
"v4.5.0",
"v4.4.2",
"v4.4.1",
"v4.4.0",
"v4.3.1",
"v4.3.0",
"v4.2.0",
"v4.1.3",
"v4.1.2",
"v4.1.1",
"v4.1.0",
"v4.0.1",
"v4.0.0",
"v3.1.8",
"v3.1.7",
"v3.1.6",
"v3.1.5",
"v3.1.4",
"v3.1.3",
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v2.7.2",
"v2.7.1",
"v2.7.0",
"v2.6.4",
"v2.6.3",
"v2.6.2",
"v2.6.1",
"v2.6.0",
"v2.5.0",
"v2.4.2",
"v2.4.1",
"v2.4.0",
"v2.3.2",
"v2.3.2-gpgtest.0",
"v2.3.1",
"v2.3.0",
"v2.2.1",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v1.11.0",
"v1.10.0",
"v1.9.0",
"v1.8.0",
"v1.7.0",
"v1.6.0",
"v1.5.0",
"v1.4.0",
"v1.3.4",
"v1.3.3",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.4",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.7.1",
"v0.7.0",
"v0.6.5",
"v0.6.4",
"v0.6.3",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.5.15",
"v0.5.14",
"v0.5.13",
"v0.5.12",
"v0.5.11",
"v0.5.9",
"v0.5.8",
"v0.5.7",
"v0.5.6",
"v0.5.5",
"v0.5.4",
"v0.5.3",
"v0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.45",
"v0.3.44",
"v0.3.43",
"v0.3.42",
"v0.3.41",
"v0.3.40",
"v0.3.39",
"v0.3.38",
"v0.3.37",
"v0.3.35",
"v0.3.34",
"v0.3.33",
"v0.3.32",
"v0.3.31",
"v0.3.30",
"v0.3.29",
"v0.3.28",
"v0.3.27",
"v0.3.26",
"v0.3.25",
"v0.3.22",
"v0.3.21",
"v0.3.20",
"v0.3.19",
"v0.3.18",
"v0.3.17",
"v0.3.16",
"v0.3.15",
"v0.3.14",
"v0.3.13",
"v0.3.12",
"v0.3.11",
"v0.3.10",
"v0.3.9",
"v0.3.8",
"v0.3.7",
"v0.3.6",
"v0.3.5",
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.0",
"v0.1.24",
"v0.1.23",
"v0.1.22",
"v0.1.21",
"v0.1.20",
"v0.1.19",
"v0.1.17",
"v0.1.16",
"v0.1.15",
"v0.1.14",
"v0.1.13",
"v0.1.12",
"v0.1.10",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"v0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23400.json"
}
}
],
"modified": "2026-10-20T10:54:31.884082526Z",
"provider": "osv",
"references": [
"https://github.com/nodemailer/nodemailer/issues/1289",
"https://github.com/nodemailer/nodemailer/commit/7e02648cc8cd863f5085bad3cd09087bccf84b9f",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314737",
"https://snyk.io/vuln/SNYK-JS-NODEMAILER-1296415"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23400",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385490,
"published_at": "2021-06-29T12:15:08.363+00:00"
}