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

Published Nov 16, 2026
·
Updated

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, receivedsformat() 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 parsefrom entry point and may drop a queued batch. This issue is fixed in version 4.6.3.

Affected Software

1 affected component
pypi/mail-parser>=3.7.0<4.6.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mail-parser to a version that resolves this vulnerability.

    Fixed in 4.6.3

Event History

Nov 16, 2026
CVE Published
via MITRE·05:45 PM
Data Sourced
via MITRE·05:45 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An unauthenticated attacker who can supply an email for parsing can trigger it by placing a crafted trailing date in a Received header. The affected parsing paths include every parse_from_* entry point.

2

What is the operational impact?

A malformed Received date with an out-of-range year or a sufficiently large timezone offset can cause an uncaught OverflowError or OSError and abort parsing of the entire message. In queued processing, this may also cause a batch to be dropped.

3

Which versions should be remediated?

Versions from 3.7.0 up to, but not including, 4.6.3 are affected. Upgrade to version 4.6.3, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203