Skip to content
FlawDB
Sign in

CVE-2026-129295

HIGH 7.5EPSS 48%

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

Also known as GHSA-r7w7-vpq8-c5vv

Mitigation

  • Upgrade mail-parser to 4.6.1 or later.

Who should check

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

Vulnerability facts

Affected
mail-parser >= 4.2.0, < 4.6.1
Fixed in
4.6.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen 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: None
  • Availability impact: High
EPSS
0.68% chance of exploitation in 30 days (percentile 48, 2026-11-28)
CWE
CWE-1333
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.2.0 until 4.6.1, attacker-controlled email headers can cause polynomial regular-expression backtracking during ordinary parse_from_string(), parse_from_bytes(), or parse_from_file() calls. In src/mailparser/utils.py, get_addresses() invokes the _ADDR_FALLBACK_RE fallback when strict address parsing yields no usable address, and overlapping quantifiers rescan padded address headers quadratically or cubically. In src/mailparser/const.py, parse_received() applies _CLAUSE_SPLITTER to uncollapsed whitespace in a Received header, causing quadratic backtracking when a whitespace run is not followed by a clause keyword. A small, well-formed message can keep mail gateway, ticketing, quarantine, or archival parsing workers busy for extended periods. This issue is fixed in version 4.6.1.

Affected and fixed versions

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

Details: https://flawdb.com/CVE-2026-129295.md
Affected: mail-parser >= 4.2.0, < 4.6.1
Fixed in: 4.6.1

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

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

How serious is CVE-2026-129295?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-129295?

mail-parser >= 4.2.0, < 4.6.1.

Is there a fix for CVE-2026-129295?

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

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

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

mail-parser: Path Traversal vulnerability in attachment extraction

PyPI packages
EPSS 51%
Sponsors