CVE-2026-129296

GHSA-fr3h-cpq2-9496 · published 16 Nov 2026 · updated 18 Nov 2026

mail-parser: Path Traversal vulnerability in attachment extraction

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in mail-parser 4.6.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
SpamScope>=3.8.0 <4.6.0
pypi: mail-parser>=3.8.0 <4.6.04.6.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in mail-parser (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129296 severity on Zeptric[![CVE-2026-129296](https://zeptric.io/badge/cve/CVE-2026-129296.svg)](https://zeptric.io/cve/CVE-2026-129296)