CVE-2026-129301SpamScope mail-parser
Medium 6.5 No auth needed
- Priority
- 58
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Nov 16, 2026
- Updated
- Nov 18, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
What happens
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3.
What to do
- Apply the vendor's security update for mail-parser.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mail-parser |
≥ 4.6.0 < 4.6.3 |
4.6.3 |
pip install "mail-parser>=4.6.3" |
Per OSV / GitHub Advisories (GHSA-8cgq-x343-p74c). Check the version in your lockfile before upgrading.
Affected products
- SpamScope · mail-parser
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.