CVE-2026-129295

7.5High

Published 16 Nov 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-1333

What an attacker gets

Remote attackers can cause a denial of service by exhausting CPU resources on your email processing workers. They only need to send a specially crafted email to trigger the vulnerability.

Root cause

The library uses inefficient regular expressions that suffer from polynomial backtracking when processing specific email headers.

Affected versions

mail-parser versions 4.2.0 through 4.6.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Upgrade mail-parser to version 4.6.1 or later. If you cannot patch immediately, implement a timeout on all email parsing tasks to prevent worker process hangs.

remediation — bash
$ pip install --upgrade mail-parser

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-129295