Skip to content
FlawDB
Sign in

CVE-2026-129296

MEDIUM 6.5EPSS 51%

mail-parser: Path Traversal vulnerability in attachment extraction

Also known as GHSA-fr3h-cpq2-9496

Mitigation

  • Upgrade mail-parser to 4.6.0 or later.

Who should check

  • Projects that depend on PyPI package mail-parser (>= 3.8.0, < 4.6.0)
  • Anyone running SpamScope mail-parser >= 3.8.0, < 4.6.0

Vulnerability facts

Affected
mail-parser >= 3.8.0, < 4.6.0
Fixed in
4.6.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
0.74% chance of exploitation in 30 days (percentile 51, 2026-11-28)
CWE
CWE-22
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI mail-parser>= 3.8.0, < 4.6.04.6.0ghsa
SpamScope mail-parser>= 3.8.0, < 4.6.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-129296. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-129296.md
Affected: mail-parser >= 3.8.0, < 4.6.0
Fixed in: 4.6.0

Steps:
1. Search this machine and project for mail-parser (PyPI), SpamScope mail-parser: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-129296 being exploited?

There is no confirmed exploitation: CVE-2026-129296 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-28).

How serious is CVE-2026-129296?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-129296?

mail-parser >= 3.8.0, < 4.6.0.

Is there a fix for CVE-2026-129296?

Yes. Fixed in 4.6.0. Upgrade mail-parser to 4.6.0 or later.

How do I check if I'm affected by CVE-2026-129296?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-129301

mail-parser: One hostile attachment aborts `write_attachments()` and silently drops the rest of the batch

PyPI packages
EPSS 32%
MEDIUM 5.3CVE-2026-129300

mail-parser: Uncaught `OverflowError` / `OSError` on an out-of-range `Received` date

PyPI packages
EPSS 38%
MEDIUM 6.5CVE-2026-129299

mail-parser: Uncaught exceptions and silent header loss in mail-parser on attacker-controlled input

PyPI packages
EPSS 32%
HIGH 7.5CVE-2026-129297

mail-parser: Sender IP address spoofing in get_server_ipaddress()

PyPI packages
EPSS 9%
HIGH 7.5CVE-2026-129295

mail-parser is vulnerable to polynomial ReDoS in email header parsing

PyPI packages
EPSS 48%
Sponsors