Loading0%
SUBZER0
LIVE
Alerts

CVE-2026-129295

mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object.

  • Severity: High
  • CVSS 7.5
  • EPSS 0.68%
  • P3 · Planned

Why P3: planned.

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 products

  • pip mail-parser >= 4.2.0, < 4.6.1; first patched: 4.6.1

Weakness

CVSS vector

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

References

Browse more

PyPI (pip) packagesWeek 47, 2026 recap

Published 2026-11-16 · updated 2026-11-17 · sources: NVD, GitHub Advisory Database