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.
https://github.com/eleith/emailjs/releases/tag/v5.0.4
https://github.com/eleith/emailjs/commit/d01fe2cf167eb6bbebdf578b758b8f4e450f95d1
https://github.com/eleith/emailjs/blob/v5.0.3/src/address.ts#L16-L56