PyPI
CVE-2026-129300
mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
- Severity
- Medium 5.3
- Published
- 16 Nov 2026
- Last changed
- 16 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.6.3
- Exploit chance
- 0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Uncaught exception (CWE-248)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-xhrq-2mqv-q8wx
- Sources
- OSV.dev and GitHub
Description
A Received header whose trailing date carries an out-of-range year, or a timezone offset large enough to push the timestamp past the int64 epoch range, raises an exception that is outside the MailParser* hierarchy. A caller that catches only mail-parser exceptions does not catch it, and the parse of the entire message is aborted — the same class of issue as GHSA-24mq-4vc6-2prf, which this survives (it is not a duplicate; 24mq is fixed in 4.6.2 and this reproduces on 4.6.2).
All entry points are affected: parse_from_string(), parse_from_bytes(), parse_from_file(), parse_from_file_obj() and the mail-parser CLI. The header is fully attacker-controlled and a single line is enough, so any pipeline that parses untrusted mail can be made to lose the message — and, if one worker handles a queue, to drop the batch.
Root cause. receiveds_format() in src/mailparser/utils.py guarded the date conversion with except (TypeError, ValueError), but convert_mail_date() → email.utils.mktime_tz() →…
Workarounds
Upgrade to 4.6.3. If you cannot upgrade, wrap every parse_from_* call in a bare except Exception rather than except MailParserError, and treat the message as unparsed.
Affected software
| Software | Affected versions |
|---|---|
mail-parserPyPI · osv:PyPI:mail-parser |
|
About mail-parser
- Weekly downloads (PyPI)
- 1,447,533PyPI Stats, 24 Nov 2026
Vulnerabilities in mail-parser
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-129301mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batchMedium 6.5 16 Nov 2026
- CVE-2026-129299mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled inputMedium 6.5 16 Nov 2026
- CVE-2026-129297mail-parser: Sender IP address spoofing in get_server_ipaddress()High 7.5 16 Nov 2026
- CVE-2026-129295mail-parser is vulnerable to polynomial ReDoS in email header parsingHigh 7.5 16 Nov 2026
- CVE-2026-129296mail-parser: Path Traversal vulnerability in attachment extractionMedium 6.5 16 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-129300
- GitHub Advisory Database https://github.com/advisories/GHSA-xhrq-2mqv-q8wx