p PatchFirst

CVE-2026-129300

CVE-2026-129300 · mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date

CVSS 5.3 · 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.

Check the installed version:

pip show mail-parser

Assess 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 | sh
Check your server for free →

Channels 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. From 3.7.0 until 4.6.3, receiveds_format() in src/mailparser/utils.py catches only TypeError and ValueError while converting the trailing date of an attacker-controlled Received header. An out-of-range year can cause calendar.timegm() to raise OverflowError, and a sufficiently large timezone offset can cause datetime.fromtimestamp() to raise OSError. These exceptions are outside the MailParserError hierarchy, so one crafted header can abort the entire message parse through every parse_from_* entry point and may drop a queued batch. This issue is fixed in version 4.6.3.

Published
Updated

Stack: python

Affected products and versions

  • mail-parser

    Versions
    • >= 3.7.0, < 4.6.3: Affected

    No fix published

  • mail-parser PyPI

    Versions
    • 3.10.0
    • 3.11.0
    • 3.12.0
    • 3.13.0
    • 3.14.0
    • 3.15.0
    All versions (27)
    • 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
    • 4.6.2
    Affected ranges
    • ECOSYSTEM: ≥ 3.7.0, < 4.6.3

    Update to 4.6.3

Original sources

Check your server →