CVE-2026-129296
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 2 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| sid | mail-parser |
Not affected | — |
| forky | mail-parser |
Not affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | mail-parser | >= 3.8.0, < 4.6.0 | 4.6.0 |
| PyPI | mail-parser | >=3.8.0,<4.6.0 | 4.6.0 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| spamscope | mail-parser | >= 3.8.0, < 4.6.0 | |
References
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-129296
- https://github.com/advisories/GHSA-fr3h-cpq2-9496
- https://github.com/SpamScope/mail-parser
- https://security-tracker.debian.org/tracker/CVE-2026-129296
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.