{"id":"UBUNTU-CVE-2021-23400","details":"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.","modified":"2025-10-24T04:50:08Z","published":"2021-06-29T12:15:00Z","upstream":["CVE-2021-23400"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23400"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-NODEMAILER-1296415"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314737"},{"type":"REPORT","url":"https://github.com/nodemailer/nodemailer/commit/7e02648cc8cd863f5085bad3cd09087bccf84b9f"},{"type":"REPORT","url":"https://github.com/nodemailer/nodemailer/issues/1289"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23400"}],"affected":[{"package":{"name":"node-nodemailer","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-nodemailer@6.4.5-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.3.0-2","6.3.1-1","6.4.0-1","6.4.1-1","6.4.2-1","6.4.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-nodemailer","binary_version":"6.4.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23400.json"}},{"package":{"name":"node-nodemailer","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-nodemailer@6.7.1+~6.4.4-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.4.17-3","6.7.0-1","6.7.0-2","6.7.1+~6.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-nodemailer","binary_version":"6.7.1+~6.4.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23400.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}