CVE-2026-129300 — Mail-parser — CWE-248
CVE-2026-129300 is a MEDIUM severity security vulnerability (CWE-248) (CVSS 5.3/10 (EPSS: 0.4%)) affecting Mail-parser. Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) with zero user interaction (UI:N), posing a direct security risk to affected deployments.
📄 Official NVD / MITRE Original Record Text
### Impact 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](https://github.com/SpamScope/mail-parser/security/advisories/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. ```python import mailparser raw = ("Received: from x ([1.2.3.4]) by mx.victim.com; " "Tue, 7 Mar 292277026596 14:29:24 +0000\r\n\r\nbody\r\n") mailparser.parse_from_string(raw).mail_json # <= 4.6.2 -> OverflowError: signed integer is greater than maximum # 4.6.3 -> parses; the unusable hop date is reported as "date_utc": null ``` **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()` → `calendar.timegm()` raise
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-129300
CVSS 5.3/10 · MEDIUM · 16.11.2026
CWE: CWE-248
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Impact
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…
Affected: mail-parser
⚡ ATTACK CHAIN
Remotely over internet | no authentication required | no user interaction | low complexity.
🌍 REAL WORLD IMPACT
🛡️ REMEDIATION
→ Apply vendor security update for mail-parser.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
📋 Routine update cycle (30 days)
────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]