CVE-2026-129299: mail-parser Uncaught Exception
Published 2026-11-16 · Updated 2026-11-16 · Source security-advisories@github.com
Not known to be exploited · medium severity — update mail-parser to 4.6.2 or later on your normal schedule.
What to do
- Update mail-parser to version 4.6.2 or later. Versions before 4.6.2 are affected.
- Until it is patched, do not leave mail-parser reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Make sure the service restarts automatically and limit untrusted input to the affected component.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| mail-parser | < 4.6.2 | 4.6.2 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: integrity and availability are rated low.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | Low | Partial loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness: Uncaught Exception
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96
- Patchhttps://github.com/SpamScope/mail-parser/pull/167
- Patchhttps://github.com/SpamScope/mail-parser/releases/tag/4.6.2
- Advisoryhttps://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf