HackerFeeds
All CVEs

CVE-2026-129296: mail-parser Path Traversal

MEDIUM6.5

Published 2026-11-16 · Updated 2026-11-18 · Source security-advisories@github.com

Not known to be exploited · medium severity — update mail-parser to 4.6.0 or later on your normal schedule.

What to do

  1. Update mail-parser to version 4.6.0 or later. Versions from 3.8.0 up to, but not including, 4.6.0 are affected.
  2. Until it is patched, do not leave mail-parser reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Block requests containing traversal sequences at the proxy or WAF, and run the service under an account that can only read the directories it needs.
  4. Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.

Affected and fixed versions

ProductAffectedFixed in
mail-parser≥ 3.8.0, < 4.6.04.6.0

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact on integrity is rated high.

CVSS 3.1 metrics for CVE-2026-129296
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionRequiredA victim has to take an action, such as opening a link or file.
ConfidentialityNoneNo effect on confidentiality.
IntegrityHighTotal loss of integrity.
AvailabilityNoneNo effect on availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Weakness: Path Traversal

An attacker can use sequences such as "../" to reach files outside the intended directory, reading configuration or credentials and in some cases overwriting files.

Classified as CWE-22.

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.

Advisory text as published in the NVD record.

View on NVD