CVE-2026-129299

GHSA-24mq-4vc6-2prf · published 16 Nov 2026 · updated 16 Nov 2026

mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in mail-parser 4.6.2.

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. Prior to 4.6.2, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
SpamScope<4.6.2
pypi: mail-parser<4.6.2, <=4.6.14.6.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in mail-parser (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129299 severity on Zeptric[![CVE-2026-129299](https://zeptric.io/badge/cve/CVE-2026-129299.svg)](https://zeptric.io/cve/CVE-2026-129299)