@zone-eu/mailsplit is vulnerable to MIME Boundary Smuggling
65
Medium Risk
The MIME parser in message-splitter.js mishandles multipart boundary ownership, so a crafted message can deactivate a live outer boundary or collapse real parts in the preamble into one opaque chunk. This desynchronizes the parsed node stream from what a recipient mail client renders, letting attachments and other parts stay hidden from downstream scanners while the message still round-trips byte for byte. Header reconstruction in headers.js also fails to neutralize CR and LF sequences at the single insertion point and can promote a folded continuation line into a new header, allowing header injection when applications add or update headers using externally influenced values. The fix resolves boundary owners exactly, sanitizes inserted header keys and values, refuses to emit headers the parser never reported, and bounds pending-line buffering to limit resource exhaustion on overlong lines.
You are affected if you are using a version that falls within the vulnerable range and you use it to parse untrusted email messages or rebuild headers from externally influenced input.
@zone-eu/mailsplit is vulnerable to MIME Boundary Smuggling in versions 5.4.6 - 5.4.14.
Upgrade the @zone-eu/mailsplit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant