CVE-2026-129296

Medium

Description

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0.

SeverityMedium
CVSS6.5
Exploit probability—
ProductSpamscope Mail-parser
PublishedNov 16, 2026
First seenNov 16, 2026

How to fix

Update
  • mail-parser4.6.0 or later

Affected products

ProductAffected versionsFixed in
SpamScope mail-parser>= 3.8.0, < 4.6.0—
mail-parserPyPI3.8.0 ≤ v < 4.6.04.6.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.