HackerFeeds
All CVEs

CVE-2026-129299: mail-parser Uncaught Exception

MEDIUM6.5

Published 2026-11-16 · Updated 2026-11-16 · Source security-advisories@github.com

Not known to be exploited · medium severity — update mail-parser to 4.6.2 or later on your normal schedule.

What to do

  1. Update mail-parser to version 4.6.2 or later. Versions before 4.6.2 are affected.
  2. Until it is patched, do not leave mail-parser reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Make sure the service restarts automatically and limit untrusted input to the affected component.

Affected and fixed versions

ProductAffectedFixed in
mail-parser< 4.6.24.6.2

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: integrity and availability are rated low.

CVSS 3.1 metrics for CVE-2026-129299
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityLowPartial loss of integrity.
AvailabilityLowPartial loss of availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Weakness: Uncaught Exception

An unhandled error terminates the process, so crafted input causes denial of service.

Classified as CWE-248, CWE-436.

Description

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. Prior to 4.6.2, multiple message-processing behaviors can raise exceptions or silently lose content. Headers colliding with methods such as Parse, Message, and Write_Attachments can place bound method objects into parsed output and raise TypeError when a caller requests JSON serialization such as mail_json. When byte input is parsed through parse_from_bytes(), an 8-bit header value returned as email.header.Header can likewise raise TypeError when an X_raw accessor passes the value to json.dumps; both exceptions are outside the MailParserError hierarchy. Separately, rewritten names such as Subject_json and X_Spam_Flag can be substituted or disappear from mail, headers, and JSON output while has_defects remains false, and a headerless message can be treated as falsy before parser state is initialized, causing body and attachment properties to return empty values without an error signal. These behaviors can abort message processing or hide malicious indicators from downstream scanners. This issue is fixed in version 4.6.2.

Advisory text as published in the NVD record.

View on NVD