Arbitrary mail header injection via address objects
Published Jun 29, 2021 · Updated Sep 16, 2024
HTTP header injection in Nodemailer before 6.6.1 allows remote attackers to add arbitrary mail headers through a crafted address object. MimeNode._normalizeAddress() trims the address string but leaves carriage returns and line feeds intact before _convertAddresses() inserts it into a generated header. Exploitation requires an application to pass attacker-controlled address-object input into message construction; the resulting email can carry attacker-chosen headers.
Summary
What happened
HTTP header injection in Nodemailer before 6.6.1 allows remote attackers to add arbitrary mail headers through a crafted address object. MimeNode._normalizeAddress() trims the address string but leaves carriage returns and line feeds intact before _convertAddresses() inserts it into a generated header. Exploitation requires an application to pass attacker-controlled address-object input into message construction; the resulting email can carry attacker-chosen headers.
The record
- CVE
- CVE-2021-23400
- Published
- Jun 29, 2021
- Updated
- Sep 16, 2024
- Vendor
- Nodemailer
- Product
- Nodemailer
- Classifications
- CWE-74
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 29, 2021CVE publishedPublication date reported by the CVE source.
- Sep 16, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <6.6.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Address-object line-break injection reproductionproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo