Skip to content
FlawDB
Sign in

CVE-2026-129301

MEDIUM 6.5EPSS 32%

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

Also known as GHSA-8cgq-x343-p74c

Mitigation

  • Upgrade mail-parser to 4.6.3 or later.

Who should check

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

Vulnerability facts

Affected
mail-parser >= 4.6.0, < 4.6.3
Fixed in
4.6.3
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:N/S:U/C:N/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.46% chance of exploitation in 30 days (percentile 32, 2026-11-28)
CWE
CWE-248, CWE-436
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 4.6.0 until 4.6.3, write_attachments() calls _safe_attachment_filename() and write_sample() without isolating failures for individual attacker-controlled MIME parts. An RFC 2231 filename containing a NUL, a basename exceeding NAME_MAX, or an undecodable base64 payload can raise ValueError, OSError, or binascii.Error and abort the entire save loop. Later attachments remain unwritten; when a caller catches only MailParserError, the failure is not surfaced through the expected library-exception path. If a downstream scanner or sandbox reads only the extraction directory, a payload after the crafted part can be missed even though it remains in the delivered message, and the aborted batch also causes availability loss. This issue is fixed in version 4.6.3.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI mail-parser>= 4.6.0, < 4.6.34.6.3ghsa
SpamScope mail-parser>= 4.6.0, < 4.6.3—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-129301. Work read-only: do not install, upgrade, delete or change anything.

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

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-129301 being exploited?

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

How serious is CVE-2026-129301?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-129301?

mail-parser >= 4.6.0, < 4.6.3.

Is there a fix for CVE-2026-129301?

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

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

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 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%
MEDIUM 6.5CVE-2026-129296

mail-parser: Path Traversal vulnerability in attachment extraction

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

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

PyPI packages
EPSS 48%
Sponsors