CVE-2026-129296
published medium CVSS 3.1 · 6.5mail-parser: Path Traversal vulnerability in attachment extraction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SpamScope | — | mail-parser>= 3.8.0, < 4.6.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| SpamScope | mail-parser | >= 3.8.0, < 4.6.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory
References
5- https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8
- https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d
- https://github.com/SpamScope/mail-parser/pull/165
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.0
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496
Provider assertions
2GitHub_M · cna
mail-parser: Path Traversal vulnerability in attachment extraction
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2b87e16462b9bb392028bba15850bdf1eb9bedcc13b4e704a1dd7d9b498ac53e
- Ingested
- 18 Nov 2026, 15:23:52 UTC
- Source record
- Official CVE record