Read the docs

Uncaught exceptions and silent header loss in mail-parser

Priority LOW 32CWE-248Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-248.

Summary

mail-parser before 4.6.2 can raise exceptions or silently lose content when processing attacker-controlled email. Headers that collide with method names such as Parse or Message can place bound method objects into parsed output, causing a TypeError when JSON serialization is requested, and this error falls outside the MailParserError hierarchy. Rewritten header names can be substituted or dropped while has_defects stays false, and a headerless message can be treated as empty without an error signal. An unauthenticated remote attacker can use crafted messages to abort processing or hide malicious indicators from downstream scanners, as described in CWE-248 and CWE-436.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed mail-parser (SpamScope): 4.6.2mail-parser (PyPI): 4.6.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
SpamScopemail-parserbefore 4.6.24.6.2Patch availableCNA
—mail-parser (PyPI)before 4.6.24.6.2Patch availableGHSA-24mq-4vc6-2prf
  • mail-parser VendorSpamScope Affected before 4.6.2 Fixed in 4.6.2 Patch available CNA
  • mail-parser (PyPI) Vendor— Affected before 4.6.2 Fixed in 4.6.2 Patch available GHSA-24mq-4vc6-2prf

Remediation

Upgrade mail-parser to version 4.6.2, which fixes the issue for the SpamScope vendor package and the PyPI package.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA mail-parser (SpamScope) Fixed in 4.6.2
  • Fix · GHSA-24mq-4vc6-2prf mail-parser (PyPI) Fixed in 4.6.2 Advisory →

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-129299
  2. 2026-11-16 CISA SSVC decision points changed
  3. 2026-11-16 Alias added: GHSA-24mq-4vc6-2prf
  4. 2026-11-16 Fix available: PyPI/[email protected] · GHSA-24mq-4vc6-2prf
  5. 2026-11-16 CVSS score added · GHSA-24mq-4vc6-2prf
  6. 2026-11-16 Weakness changed · GHSA-24mq-4vc6-2prf
  7. 2026-11-16 6 new references · GHSA-24mq-4vc6-2prf

References

  • TI-2026-92235 Polynomial ReDoS in mail-parser email header parsing CVSS 3.1HIGH 7.5
  • TI-2026-92240 Hostile attachment aborts attachment saving in mail-parser CVSS 3.1MEDIUM 6.5
  • TI-2026-92236 Path traversal in mail-parser lets attackers overwrite files CVSS 3.1MEDIUM 6.5
  • TI-2026-92239 Uncaught exceptions in mail-parser crash parsing on a crafted Received date CVSS 3.1MEDIUM 5.3
  • TI-2026-92237 Sender IP spoofing in mail-parser get_server_ipaddress() CVSS 3.1HIGH 7.5

Sources