CVE-2026-129296
MEDIUM 6.5CVSS 3.1mail-parser: Path Traversal vulnerability in attachment extraction
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
- 16 Nov 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-fr3h-cpq2-9496
- Sources
- NVDJSONOSV GHSA-fr3h-cpq2-9496JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | mail-parser | >= 3.8.0, < 4.6.0 | 4.6.0 |
References
- https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8 · WEB
- https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d · WEB
- https://github.com/SpamScope/mail-parser/pull/165 · WEB
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.0 · WEB
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-129296 · ADVISORY
- https://github.com/SpamScope/mail-parser · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 16 Nov 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Nov 2026)