๐Ÿ” CVE Alert

CVE-2026-129295

HIGH 7.5

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

CVSS Score
7.5
EPSS Score
0.5%
EPSS Percentile
43th

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.

CWE CWE-1333
Vendor spamscope
Product mail-parser
Published Nov 16, 2026
Last Updated Nov 17, 2026
Stay Ahead of the Next One

Get instant alerts for spamscope mail-parser

Be the first to know when new high vulnerabilities affecting spamscope mail-parser are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

SpamScope / mail-parser
>= 4.2.0, < 4.6.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/SpamScope/mail-parser/security/advisories/GHSA-r7w7-vpq8-c5vv github.com: https://github.com/SpamScope/mail-parser/pull/166 github.com: https://github.com/SpamScope/mail-parser/commit/037293158cb291caa96635a54449243d32cd4d96 github.com: https://github.com/SpamScope/mail-parser/commit/5aab122f0d763991604d2c2bcc807c6bf2489464 github.com: https://github.com/SpamScope/mail-parser/commit/85e53f820d78ae7c955dafbbcd0e20989a735c2c github.com: https://github.com/SpamScope/mail-parser/releases/tag/4.6.1