VulnWatch by ve1ve2
medium 6.5 EPSS 0.60%

CVE-2026-129296: 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…

Source:
NVD CVE API 2.0
Published:
Fetched:
Updated:

https://nvd.nist.gov/vuln/detail/CVE-2026-129296 ↗

CWE-22

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. References: https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8 https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d https://github.com/SpamScope/mail-parser/pull/165 https://github.com/SpamScope/mail-parser/releases/tag/4.6.0 https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496

Linked vulnerabilities (2)

CVE-2026-129296 medium 6.5 EPSS 0.60% (p50) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

mail-parser: mail-parser: Arbitrary file overwrite via directory traversal in attachment extraction

CWE: CWE-22, CWE-73Aliases: GHSA-fr3h-cpq2-9496NVD: Received
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

mail-parser: Path Traversal vulnerability in attachment extraction

CWE: CWE-22, CWE-73Aliases: CVE-2026-129296

Also reported by (1)