Description
emailjs 3.2.0 before 5.0.4 contains an address parsing vulnerability in addressparser that allows attackers to inject hidden recipients by abusing nested comments, semicolons, or backslash escapes. Attackers can craft recipient strings that pass conformant-parser allow lists but make emailjs send RCPT TO commands to attacker-chosen addresses, disclosing message content.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| eleith | emailjs | 3.2.0 – < 5.0.4 | 5.0.4 |
References
- https://github.com/eleith/emailjs/commit/d01fe2cf167eb6bbebdf578b758b8f4e450f95d1 patch
- https://github.com/eleith/emailjs/blob/v5.0.3/src/address.ts#L16-L56 technical-description
- emailjs v5.0.4 Release Notes release-notes
- VulnCheck Advisory: emailjs 3.2.0 before 5.0.4 Recipient Injection via addressparser Tokenizer third-party-advisory