CVE-2026-129299
CVE-2026-129299 · mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input
CVSS 6.5 · Medium · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mail-parserNo fix published
- mail-parser PyPIUpdate to 4.6.2
Check the installed version:
pip show mail-parserAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: python
Affected products and versions
mail-parser
- Versions
- < 4.6.2: Affected
No fix published
mail-parser PyPI
- Versions
- 0.5.0
- 1.0.0
- 1.0.0rc1
- 1.1.0
- 1.1.1
- 1.1.10
All versions (69)
- 1.1.2
- 1.1.3
- 1.1.4
- 1.1.5
- 1.1.6
- 1.1.7
- 1.1.8
- 1.1.9
- 1.2.0
- 1.2.1
- 1.2.2
- 1.2.4
- 1.2.5
- 1.2.6
- 2.0.0
- 2.0.1
- 2.1.0
- 3.0.0
- 3.1.0
- 3.10.0
- 3.11.0
- 3.12.0
- 3.13.0
- 3.14.0
- 3.15.0
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.3.0
- 3.3.1
- 3.3.2
- 3.3.3
- 3.4.0
- 3.4.1
- 3.5.0
- 3.5.1
- 3.6.0
- 3.6.1
- 3.7.0
- 3.7.1
- 3.8.0
- 3.8.1
- 3.9.0
- 3.9.1
- 3.9.2
- 3.9.3
- 4.0.0
- 4.1.0
- 4.1.2
- 4.1.3
- 4.1.4
- 4.2.0
- 4.2.1
- 4.3.0
- 4.4.0
- 4.5.0
- 4.6.0
- 4.6.1
- Affected ranges
- ECOSYSTEM: < 4.6.2
Update to 4.6.2
Original sources
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-24mq-4vc6-2prf
- https://github.com/SpamScope/mail-parser/pull/167
- https://github.com/SpamScope/mail-parser/commit/ce3cf3559db1ff806bda598b378de9f8c2a5be96
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.2
- https://nvd.nist.gov/vuln/detail/CVE-2026-129299