Advisories for Pypi/Eml-Parser package

2026

eml_parser: Path Traversal in Official Example Script Leads to Arbitrary File Write

The official example script examples/recursively_extract_attachments.py contains a path traversal vulnerability that allows arbitrary file write outside the intended output directory. Attachment filenames extracted from parsed emails are directly used to construct output file paths without any sanitization, allowing an attacker-controlled filename to escape the target directory.