mail-parser: Path Traversal vulnerability in attachment extraction
CVE-2026-129296Published 16 Nov 2026, 17:36 UTC
Real-world risk
4.2/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| mail-parserNiche | >= 3.8.0, < 4.6.0 | 4.6.0 |
What to do
Update to a fixed version: 4.6.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 48), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.7 × threat 0.854.165
- Rounded to one decimal between 0.1 and 104.2
Exploitation and evidence timeline
- 16 Nov 2026 Published
- 3 Dec 2026 Risk 4.2 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496vendor-advisory
- https://github.com/SpamScope/mail-parser/pull/165misc
- https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8misc
- https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1dmisc
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.0misc
- CVE-2026-129296 on CVE.org