Directory Traversal Vulnerability in mail-parser by SpamScope
CVE-2026-129296
6.5MEDIUM
What is CVE-2026-129296?
The mail-parser tool is susceptible to a directory traversal vulnerability due to improper handling of attachment filenames in its write_attachments() and write_sample() APIs. This allows an attacker to exploit the tool by sending crafted email messages with malicious attachment filenames that lack sufficient sanitization. As a result, these attachments could be written outside the designated output directory, leading to potential file overwrites within the parsing process. This issue impacts mail-parser versions from 3.8.0 to 4.5.9 and has been remediated in version 4.6.0.
Affected Version(s)
mail-parser >= 3.8.0, < 4.6.0
