CVE-2026-129295

GHSA-r7w7-vpq8-c5vv · published 16 Nov 2026 · updated 17 Nov 2026

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

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in mail-parser 4.6.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
SpamScope>=4.2.0 <4.6.1
pypi: mail-parser>=4.2.0 <4.6.14.6.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in mail-parser (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129295 severity on Zeptric[![CVE-2026-129295](https://zeptric.io/badge/cve/CVE-2026-129295.svg)](https://zeptric.io/cve/CVE-2026-129295)