Skip to content
Medium 6.5

mail-parser: Path Traversal vulnerability in attachment extraction

CVE-2026-129296 First seen on SecPulse

Affected packages

PackageAffected → Fixed
SpamScopemail-parser —
pipmail-parser
< 4.6.0→ 4.6.0
PyPImail-parser
≥ 3.8.0, < 4.6.0→ 4.6.0
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details