CVE-2026-129300

GHSA-xhrq-2mqv-q8wx · published 16 Nov 2026 · updated 17 Nov 2026

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

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in mail-parser 4.6.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
SpamScope>=3.7.0 <4.6.3
pypi: mail-parser>=3.7.0 <4.6.34.6.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in mail-parser (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129300 severity on Zeptric[![CVE-2026-129300](https://zeptric.io/badge/cve/CVE-2026-129300.svg)](https://zeptric.io/cve/CVE-2026-129300)