# CVE-2021-23400: HTTP Header Injection

- Severity: Medium 6.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-06-29T11:45:11.775Z
- Modified: 2026-06-17T03:38:41.593Z
- Also known as: GHSA-hwqf-gcqm-7353
- Weaknesses: CWE-74
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- nodemailer: from unspecified before 6.6.1
- nodemailer (npm): before 6.6.1
- nodemailer nodemailer: before 6.6.1

## Every score

- snyk: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-NODEMAILER-1296415> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314737> (exploit, patch, third-party-advisory, web)
- <https://github.com/nodemailer/nodemailer/issues/1289> (third-party-advisory, web)
- <https://github.com/nodemailer/nodemailer/commit/7e02648cc8cd863f5085bad3cd09087bccf84b9f> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23400> (advisory)

## Sources

- CVE List: [CVE-2021-23400](https://www.cve.org/CVERecord?id=CVE-2021-23400), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hwqf-gcqm-7353](https://github.com/advisories/GHSA-hwqf-gcqm-7353), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23400](https://nvd.nist.gov/vuln/detail/CVE-2021-23400), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23400 · Whole record: https://cve.day/CVE-2021-23400.json · Rebuilt by cve.day 2026-11-25T22:58:02.363Z
