Skip to content

CVE-2026-129296 mail-parser: Path Traversal vulnerability in attachment extraction

MediumCVSS 6.5
Published
Updated
Exploit status
No public exploit known

Description

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0.

Affected products

ProductAffected versionsFixed in
SpamScope mail-parser = >= 3.8.0, < 4.6.0 No fix listed
pypi mail-parser(PyPI) >= 3.8.0, < 4.6.0 4.6.0
pypi mail-parser(PyPI) = 3.10.0 No fix listed
pypi mail-parser(PyPI) = 3.11.0 No fix listed
pypi mail-parser(PyPI) = 3.12.0 No fix listed
pypi mail-parser(PyPI) = 3.13.0 No fix listed
pypi mail-parser(PyPI) = 3.14.0 No fix listed
pypi mail-parser(PyPI) = 3.15.0 No fix listed
pypi mail-parser(PyPI) = 3.8.0 No fix listed
pypi mail-parser(PyPI) = 3.8.1 No fix listed
pypi mail-parser(PyPI) = 3.9.0 No fix listed
pypi mail-parser(PyPI) = 3.9.1 No fix listed
pypi mail-parser(PyPI) = 3.9.2 No fix listed
pypi mail-parser(PyPI) = 3.9.3 No fix listed
pypi mail-parser(PyPI) = 4.0.0 No fix listed
pypi mail-parser(PyPI) = 4.1.0 No fix listed
pypi mail-parser(PyPI) = 4.1.2 No fix listed
pypi mail-parser(PyPI) = 4.1.3 No fix listed
pypi mail-parser(PyPI) = 4.1.4 No fix listed
pypi mail-parser(PyPI) = 4.2.0 No fix listed
pypi mail-parser(PyPI) = 4.2.1 No fix listed
pypi mail-parser(PyPI) = 4.3.0 No fix listed
pypi mail-parser(PyPI) = 4.4.0 No fix listed
pypi mail-parser(PyPI) = 4.5.0 No fix listed

References