Email Parsing Tool Vulnerability in Mail-Parser by SpamScope
CVE-2026-129300
5.3MEDIUM
What is CVE-2026-129300?
The Mail-Parser tool, which enhances the Python standard library for parsing emails, has a vulnerability that affects versions from 3.7.0 to 4.6.3. Specifically, the receiveds_format() function in src/mailparser/utils.py is limited in its error handling, only catching TypeError and ValueError during the parsing of the Received header. This can lead to failures when an attacker crafts a header with an out-of-range year or excessive timezone offset, causing calendar.timegm() and datetime.fromtimestamp() to raise OverflowError and OSError, respectively. Such unhandled exceptions can disrupt the entire message parsing process and may result in dropped message batches. This issue has been addressed in version 4.6.3.
Affected Version(s)
mail-parser >= 3.7.0, < 4.6.3
