CVE-2026-129299
Received Received - Intake

mail-parser 4.6.2 Header Collision and TypeError Vulnerabilities

Vulnerability report for CVE-2026-129299, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-16

Last updated on: 2026-11-16

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-16
Last Modified
2026-11-16
Generated
2026-11-16
AI Q&A
2026-11-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
mail-parser mail-parser 4.6.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-248 An exception is thrown from a function, but it is not caught.
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in mail-parser before 4.6.2 involves improper handling of email headers and message processing. It can cause exceptions or loss of content when headers collide with method names like Parse or Message, or when byte input is parsed. This leads to TypeError during JSON serialization or incorrect message processing, potentially hiding malicious content from downstream scanners.

Detection Guidance

Check the installed version of mail-parser using pip show mail-parser. If the version is below 4.6.2, the system is vulnerable. Update to version 4.6.2 or later to address the issue.

Impact Analysis

This vulnerability can cause mail-parser to crash or silently drop parts of emails, including headers or attachments. It may also hide malicious indicators, allowing harmful content to bypass security checks. Users relying on mail-parser for email processing could face data loss or security breaches.

Mitigation Strategies

Upgrade mail-parser to version 4.6.2 or higher immediately. Review email parsing logs for exceptions or missing headers. Ensure downstream scanners are updated to handle potential malicious indicators that may have been hidden.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129299. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...