HackerFeeds
All CVEs

CVE-2026-129295: mail-parser Regular Expression DoS

HIGH7.5

Published 2026-11-16 · Updated 2026-11-17 · Source security-advisories@github.com

Not known to be exploited · high severity — update mail-parser to 4.6.1 or later in your next patch cycle.

What to do

  1. Update mail-parser to version 4.6.1 or later. Versions from 4.2.0 up to, but not including, 4.6.1 are affected.
  2. Until it is patched, do not leave mail-parser reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Limit input length and apply request timeouts in front of the affected service.

Affected and fixed versions

ProductAffectedFixed in
mail-parser≥ 4.2.0, < 4.6.14.6.1

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.

CVSS 3.1 metrics for CVE-2026-129295
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityNoneNo effect on integrity.
AvailabilityHighTotal loss of availability.

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

Weakness: Regular Expression DoS

Crafted input makes a regular expression take excessive time, tying up the service.

Classified as CWE-1333.

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.

Advisory text as published in the NVD record.

View on NVD