CVE-2026-129301: medium-severity vulnerability in SpamScope mail-parser
mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.5epss 0.3%
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Affected products
SpamScope · mail-parserRelated CVEs — SpamScope mail-parser
In the same product, most dangerous first.
CVE-2026-129296MEDIUMmail-parser: Path Traversal vulnerability in attachment extractionEPSS 0.6%CVE-2026-129295HIGHmail-parser is vulnerable to polynomial ReDoS in email header parsingEPSS 0.5%CVE-2026-129300MEDIUMmail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` dateEPSS 0.4%CVE-2026-129299MEDIUMmail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled inputEPSS 0.4%CVE-2026-129297HIGHmail-parser: Sender IP address spoofing in `get_server_ipaddress()EPSS 0.2%
References
https://github.com/SpamScope/mail-parser/commit/11b894a0b8b3f11055a99caff118206138d1dabahttps://github.com/SpamScope/mail-parser/commit/e1d9fe6778045d6e2c44406bc8822e3464c1097fhttps://github.com/SpamScope/mail-parser/pull/171https://github.com/SpamScope/mail-parser/releases/tag/4.6.3https://github.com/SpamScope/mail-parser/security/advisories/GHSA-8cgq-x343-p74c