MEDIUMCVSS v3.1 5.3Vulnerability

CVE-2026-129300

### 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()` raises `OverflowError` for years whose epoch seconds overflow int64, and `datetime.fromtimestamp()` reports `EOVERFLOW` as `OSError` for a sufficiently large timezone offset. The `date` and `timezone` properties already wrapped the same conversion in `except Exception`; only the `Received` path was left open. **Affected range.** Introduced by the date-handling change in `ca2aa6a`, first released in 3.7.0. Reproduced on PyPI 3.7.0, 3.8.0, 3.9.3, 4.0.0, 4.5.0, 4.6.0, 4.6.2 and on `master` before the fix (Pyth

Properties

Summary
mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date
Severity
medium
Nvd fetched at
2026-11-16T22:44:16.771339+00:00
Cvss score
5.3
Cvss severity
MEDIUM
Retrieved at
2026-11-16T22:45:19+00:00
Ghsa published
2026-11-16T22:20:32Z
Source url
https://github.com/advisories/GHSA-xhrq-2mqv-q8wx
Ghsa updated
2026-11-16T22:20:33Z
Ghsa id
GHSA-xhrq-2mqv-q8wx
Last source
GitHub Advisory Database
Score
5.3
Cvss version
3.1
Cve id
CVE-2026-129300
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
First seen by Signal
2026-11-16T18:35:21+00:00
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published at
2026-11-16T18:17:30.987
Last modified
2026-11-16T18:17:30.987

Related Entities (3)

AFFECTS (1)

→[Software]pip/mail-parser

HAS_WEAKNESS (1)

→[Weakness]Uncaught Exception

VULNERABLE_TO (1)

←[Software]pip/mail-parser

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-129300 (CVSS v3.1 5.3) — Ninja Signal Threat Intelligence | Ninja Signal