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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Timeline
- 2026-11-16Published by the CNA17:36 UTC
- 2026-11-16GitHub advisory published (GHSA-fr3h-cpq2-9496)same day
- 2026-11-16Published in NVD18:17 UTC · 41 minutes after the CNA
Exploit and advisory records
GitHub advisory GHSA-fr3h-cpq2-9496, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI mail-parser | from 3.8.0 before 4.6.0 | 4.6.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| spamscope mail-parser |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-129296'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-129296'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-129296'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-129296'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).