CVE-2026-129296
CVE-2026-129296 · mail-parser: Path Traversal vulnerability in attachment extraction
CVSS 6.5 · Medium · EPSS 0.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mail-parserNo fix published
- mail-parser PyPIUpdate to 4.6.0
Check the installed version:
pip show mail-parserAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: python
Affected products and versions
mail-parser
- Versions
- >= 3.8.0, < 4.6.0: Affected
No fix published
mail-parser PyPI
- Versions
- 3.10.0
- 3.11.0
- 3.12.0
- 3.13.0
- 3.14.0
- 3.15.0
All versions (22)
- 3.8.0
- 3.8.1
- 3.9.0
- 3.9.1
- 3.9.2
- 3.9.3
- 4.0.0
- 4.1.0
- 4.1.2
- 4.1.3
- 4.1.4
- 4.2.0
- 4.2.1
- 4.3.0
- 4.4.0
- 4.5.0
- Affected ranges
- ECOSYSTEM: ≥ 3.8.0, < 4.6.0
Update to 4.6.0
Original sources
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496
- https://github.com/SpamScope/mail-parser/pull/165
- https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8
- https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-129296